diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2013-03-12 00:31:35 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-03-22 15:28:51 +0100 |
commit | 6fc76aa9adc1c8896a97059f12a1e5e6c1820c64 (patch) | |
tree | 2f46f602a1af26ca79f409528c8e0fb513542d02 /target-ppc/mmu-hash32.h | |
parent | e1d4951593426c886c1856211bc6ca81ed7c435d (diff) | |
download | qemu-6fc76aa9adc1c8896a97059f12a1e5e6c1820c64.tar.gz qemu-6fc76aa9adc1c8896a97059f12a1e5e6c1820c64.tar.bz2 qemu-6fc76aa9adc1c8896a97059f12a1e5e6c1820c64.zip |
mmu-hash32: Clean up BAT matching logic
The code to search for a matching BAT for a virtual address is somewhat
longwinded and awkward. In particular, it relies on seperate size and
validity information being returned from the hash32_bat_size() function
(and 601 specific variant).
We simplify this by having hash32_bat_size() return instead a mask of the
virtual address bits to match, and 0 for invalid (since a BAT can never
match the entire address space).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/mmu-hash32.h')
-rw-r--r-- | target-ppc/mmu-hash32.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/target-ppc/mmu-hash32.h b/target-ppc/mmu-hash32.h index f990edc3ef..884786b97a 100644 --- a/target-ppc/mmu-hash32.h +++ b/target-ppc/mmu-hash32.h @@ -22,16 +22,12 @@ int ppc_hash32_handle_mmu_fault(CPUPPCState *env, target_ulong address, int rw, * Block Address Translation (BAT) definitions */ -#define BATU32_BEPIU 0xf0000000 -#define BATU32_BEPIL 0x0ffe0000 #define BATU32_BEPI 0xfffe0000 #define BATU32_BL 0x00001ffc #define BATU32_VS 0x00000002 #define BATU32_VP 0x00000001 -#define BATL32_BRPNU 0xf0000000 -#define BATL32_BRPNL 0x0ffe0000 #define BATL32_BRPN 0xfffe0000 #define BATL32_WIMG 0x00000078 #define BATL32_PP 0x00000003 |