[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4351] Make the paged properties of the tb-jmp-cache hash f
From: |
Edgar E. Iglesias |
Subject: |
[Qemu-devel] [4351] Make the paged properties of the tb-jmp-cache hash function work for TARGET_PAGE_BITS ! = 12. |
Date: |
Tue, 06 May 2008 08:38:23 +0000 |
Revision: 4351
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4351
Author: edgar_igl
Date: 2008-05-06 08:38:22 +0000 (Tue, 06 May 2008)
Log Message:
-----------
Make the paged properties of the tb-jmp-cache hash function work for
TARGET_PAGE_BITS != 12.
Modified Paths:
--------------
trunk/exec-all.h
Modified: trunk/exec-all.h
===================================================================
--- trunk/exec-all.h 2008-05-06 08:30:15 UTC (rev 4350)
+++ trunk/exec-all.h 2008-05-06 08:38:22 UTC (rev 4351)
@@ -191,15 +191,15 @@
{
target_ulong tmp;
tmp = pc ^ (pc >> (TARGET_PAGE_BITS - TB_JMP_PAGE_BITS));
- return (tmp >> TB_JMP_PAGE_BITS) & TB_JMP_PAGE_MASK;
+ return (tmp >> (TARGET_PAGE_BITS - TB_JMP_PAGE_BITS)) & TB_JMP_PAGE_MASK;
}
static inline unsigned int tb_jmp_cache_hash_func(target_ulong pc)
{
target_ulong tmp;
tmp = pc ^ (pc >> (TARGET_PAGE_BITS - TB_JMP_PAGE_BITS));
- return (((tmp >> TB_JMP_PAGE_BITS) & TB_JMP_PAGE_MASK) |
- (tmp & TB_JMP_ADDR_MASK));
+ return (((tmp >> (TARGET_PAGE_BITS - TB_JMP_PAGE_BITS)) & TB_JMP_PAGE_MASK)
+ | (tmp & TB_JMP_ADDR_MASK));
}
static inline unsigned int tb_phys_hash_func(unsigned long pc)
- [Qemu-devel] [4351] Make the paged properties of the tb-jmp-cache hash function work for TARGET_PAGE_BITS ! = 12.,
Edgar E. Iglesias <=