From 6fc76aa9adc1c8896a97059f12a1e5e6c1820c64 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 12 Mar 2013 00:31:35 +0000 Subject: 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 Signed-off-by: Alexander Graf --- target-ppc/mmu-hash32.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'target-ppc/mmu-hash32.h') diff --git a/target-ppc/mmu-hash32.h b/target-ppc/mmu-hash32.h index f990edc..884786b 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 -- cgit v1.1