From 26f8bf63bf36f9062a5cc1afacf71462a4abe0c8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 26 Dec 2015 11:35:03 -0500 Subject: sim: mips: delete mmu stubs to move to common sim_{read,write} The only unique thing about mip's sim_{read,write} helpers is the call to address_translation on the incoming address. When we look closer at that function though, we see it's just a stub that maps physical to virtual, and the cache/return values are hardcoded. If we delete this function, we can then collapse all the callers and drop the custom sim_{read,write} logic entirely. Some day we might want to add MMU support, but when we do, we'll want to have the common layers handle things so all targets benefit. --- sim/mips/micromips.igen | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sim/mips/micromips.igen') diff --git a/sim/mips/micromips.igen b/sim/mips/micromips.igen index f24220e..d444f6d 100644 --- a/sim/mips/micromips.igen +++ b/sim/mips/micromips.igen @@ -845,11 +845,8 @@ address_word base = GPR[BASE]; address_word offset = EXTEND12 (IMMEDIATE); address_word vaddr = loadstore_ea (SD_, base, offset); - address_word paddr; - int uncached; - if (AddressTranslation (vaddr, isDATA, isLOAD, &paddr, &uncached, - isTARGET, isREAL)) - CacheOp (OP, vaddr, paddr, instruction_0); + address_word paddr = vaddr; + CacheOp (OP, vaddr, paddr, instruction_0); } -- cgit v1.1