cpu: or1k: drop unused l.swa flag
The "flag" argument isn't set/used in this insn, so drop it. This fixes an unused variable warning in the generated sim.
This commit is contained in:
parent
cbbb73f4f9
commit
fa99355b56
3 changed files with 1 additions and 3 deletions
|
@ -717,7 +717,7 @@
|
||||||
((MACH ORBIS-MACHS))
|
((MACH ORBIS-MACHS))
|
||||||
"l.swa ${simm16-split}($rA),$rB"
|
"l.swa ${simm16-split}($rA),$rB"
|
||||||
(+ OPC_SWA rA rB simm16)
|
(+ OPC_SWA rA rB simm16)
|
||||||
(sequence ((SI addr) (BI flag))
|
(sequence ((SI addr))
|
||||||
(set addr (load-store-addr rA simm16-split 4))
|
(set addr (load-store-addr rA simm16-split 4))
|
||||||
(set sys-sr-f (and atomic-reserve (eq addr atomic-address)))
|
(set sys-sr-f (and atomic-reserve (eq addr atomic-address)))
|
||||||
(if sys-sr-f
|
(if sys-sr-f
|
||||||
|
|
|
@ -1056,7 +1056,6 @@ if (EQSI (ANDSI (tmp_addr, 268435452), CPU (h_atomic_address))) {
|
||||||
|
|
||||||
{
|
{
|
||||||
SI tmp_addr;
|
SI tmp_addr;
|
||||||
BI tmp_flag;
|
|
||||||
tmp_addr = or1k32bf_make_load_store_addr (current_cpu, GET_H_GPR (FLD (f_r2)), EXTSISI (FLD (f_simm16_split)), 4);
|
tmp_addr = or1k32bf_make_load_store_addr (current_cpu, GET_H_GPR (FLD (f_r2)), EXTSISI (FLD (f_simm16_split)), 4);
|
||||||
{
|
{
|
||||||
USI opval = ANDBI (CPU (h_atomic_reserve), EQSI (tmp_addr, CPU (h_atomic_address)));
|
USI opval = ANDBI (CPU (h_atomic_reserve), EQSI (tmp_addr, CPU (h_atomic_address)));
|
||||||
|
|
|
@ -933,7 +933,6 @@ SEM_FN_NAME (or1k32bf,l_swa) (SIM_CPU *current_cpu, SEM_ARG sem_arg)
|
||||||
|
|
||||||
{
|
{
|
||||||
SI tmp_addr;
|
SI tmp_addr;
|
||||||
BI tmp_flag;
|
|
||||||
tmp_addr = or1k32bf_make_load_store_addr (current_cpu, GET_H_GPR (FLD (f_r2)), EXTSISI (FLD (f_simm16_split)), 4);
|
tmp_addr = or1k32bf_make_load_store_addr (current_cpu, GET_H_GPR (FLD (f_r2)), EXTSISI (FLD (f_simm16_split)), 4);
|
||||||
{
|
{
|
||||||
USI opval = ANDBI (CPU (h_atomic_reserve), EQSI (tmp_addr, CPU (h_atomic_address)));
|
USI opval = ANDBI (CPU (h_atomic_reserve), EQSI (tmp_addr, CPU (h_atomic_address)));
|
||||||
|
|
Loading…
Add table
Reference in a new issue