aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/micromips.igen
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-26 11:35:03 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-26 11:50:59 -0500
commit26f8bf63bf36f9062a5cc1afacf71462a4abe0c8 (patch)
treed34918179d17bf66825ef28af0dcc83b41dc94fc /sim/mips/micromips.igen
parent8b494522f9f20e1e1d29089067d51fc141c33558 (diff)
downloadfsf-binutils-gdb-26f8bf63bf36f9062a5cc1afacf71462a4abe0c8.zip
fsf-binutils-gdb-26f8bf63bf36f9062a5cc1afacf71462a4abe0c8.tar.gz
fsf-binutils-gdb-26f8bf63bf36f9062a5cc1afacf71462a4abe0c8.tar.bz2
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.
Diffstat (limited to 'sim/mips/micromips.igen')
-rw-r--r--sim/mips/micromips.igen7
1 files changed, 2 insertions, 5 deletions
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);
}