diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-18 21:43:07 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-19 05:45:01 -0500 |
commit | e9026cfbcfa4769e1c328dd45798d4483e37fc5d (patch) | |
tree | 34163080fdf7bf5b597faec884173d517f6bb125 /cpu | |
parent | fa88a361f99ecfddce4cc7228932ccc35879a6e8 (diff) | |
download | gdb-e9026cfbcfa4769e1c328dd45798d4483e37fc5d.zip gdb-e9026cfbcfa4769e1c328dd45798d4483e37fc5d.tar.gz gdb-e9026cfbcfa4769e1c328dd45798d4483e37fc5d.tar.bz2 |
cpu: cris: drop some unused vars
These fix unused variable warnings in the generated sim.
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/cris.cpu | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpu/cris.cpu b/cpu/cris.cpu index 97b4458..ba5ed18 100644 --- a/cpu/cris.cpu +++ b/cpu/cris.cpu @@ -2598,10 +2598,11 @@ "move ${Ps},${Rd-sfield}" (+ Ps RFIX_MOVE_S_R MODE_REGISTER SIZE_FIXED Rd-sfield) (sequence - ((SI grno) (SI prno) (SI newval)) + ((SI prno) (SI newval)) (set prno (regno Ps)) - ; CGEN-FIXME: Can't use the following and then "grno" below because - ; CGEN will emit a "tmp_grno" *also* in decodev32.c:crisv32f_decode + ; CGEN-FIXME: Can't declare (SI grno), then the following, and then + ; "grno" below because CGEN will emit a "tmp_grno" *also* in + ; decodev32.c:crisv32f_decode. So inline RD-sfield below. ; (set grno (regno Rd-sfield)) (set newval Ps) (.splice @@ -3838,7 +3839,8 @@ (+ Rd MODE_REGISTER RFIX_BTST SIZE_FIXED Rs) (sequence ((SI tmpd) (SI cnt)) - (set tmpd (sll Rd (sub 31 (and Rs 31)))) + (set cnt (sub 31 (and Rs 31))) + (set tmpd (sll Rd cnt)) (setf-move SI tmpd)) ) |