From fa99355b567e0693fb9b09bf328e0d1111e713c0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 18 Dec 2023 20:55:58 -0500 Subject: 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. --- sim/or1k/sem-switch.c | 1 - sim/or1k/sem.c | 1 - 2 files changed, 2 deletions(-) (limited to 'sim/or1k') diff --git a/sim/or1k/sem-switch.c b/sim/or1k/sem-switch.c index b63add8..dccc65a 100644 --- a/sim/or1k/sem-switch.c +++ b/sim/or1k/sem-switch.c @@ -1056,7 +1056,6 @@ if (EQSI (ANDSI (tmp_addr, 268435452), CPU (h_atomic_address))) { { 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); { USI opval = ANDBI (CPU (h_atomic_reserve), EQSI (tmp_addr, CPU (h_atomic_address))); diff --git a/sim/or1k/sem.c b/sim/or1k/sem.c index 95c474d..973590d 100644 --- a/sim/or1k/sem.c +++ b/sim/or1k/sem.c @@ -933,7 +933,6 @@ SEM_FN_NAME (or1k32bf,l_swa) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { 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); { USI opval = ANDBI (CPU (h_atomic_reserve), EQSI (tmp_addr, CPU (h_atomic_address))); -- cgit v1.1