cpu: cris: drop some unused vars

These fix unused variable warnings in the generated sim.
This commit is contained in:
Mike Frysinger
2023-12-18 21:43:07 -05:00
parent fa88a361f9
commit e9026cfbcf
3 changed files with 11 additions and 9 deletions

View File

@@ -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))
)