diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-15 22:49:23 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-19 05:51:11 -0500 |
commit | bb2f91823ffc19bf354a40041437a8c02972577a (patch) | |
tree | 20cbc8eb718adefec01d23254799747ea23f6b00 /sim/mips/mips.igen | |
parent | 96967be368c72d5945b792af48e40bb7cac0b979 (diff) | |
download | gdb-bb2f91823ffc19bf354a40041437a8c02972577a.zip gdb-bb2f91823ffc19bf354a40041437a8c02972577a.tar.gz gdb-bb2f91823ffc19bf354a40041437a8c02972577a.tar.bz2 |
sim: mips: fix -Wunused-variable warnings
Diffstat (limited to 'sim/mips/mips.igen')
-rw-r--r-- | sim/mips/mips.igen | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/sim/mips/mips.igen b/sim/mips/mips.igen index 0746a52..09f82aa 100644 --- a/sim/mips/mips.igen +++ b/sim/mips/mips.igen @@ -1133,18 +1133,17 @@ :function:::void:do_pref:int hint, int insn_offset, int insn_base { + /* address_word base = GPR[insn_base]; address_word offset = EXTEND16 (insn_offset); - { - address_word vaddr = loadstore_ea (SD_, base, offset); - address_word paddr = vaddr; - /* Prefetch (paddr, vaddr, isDATA, hint); */ - } + address_word vaddr = loadstore_ea (SD_, base, offset); + address_word paddr = vaddr; + Prefetch (paddr, vaddr, isDATA, hint); + */ } :function:::void:do_sc:int rt, int offsetarg, int basereg, address_word instruction_0, int store_ll_bit { - uint32_t instruction = instruction_0; address_word base = GPR[basereg]; address_word offset = EXTEND16 (offsetarg); { @@ -1684,13 +1683,13 @@ :function:::void:do_prefx:int hint, int rindex, int rbase { + /* address_word base = GPR[rbase]; address_word index = GPR[rindex]; - { - address_word vaddr = loadstore_ea (SD_, base, index); - address_word paddr = vaddr; - /* Prefetch (paddr, vaddr, isDATA, hint); */ - } + address_word vaddr = loadstore_ea (SD_, base, index); + address_word paddr = vaddr; + Prefetch (paddr, vaddr, isDATA, hint); + */ } :function:::void:do_sdc1:int ft, int offset, int base |