[PATCH/committed] sim: common: delete unused scache in some mloop paths

Message ID 20231221032824.1002-1-vapier@gentoo.org
State New
Headers
Series [PATCH/committed] sim: common: delete unused scache in some mloop paths |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Mike Frysinger Dec. 21, 2023, 3:28 a.m. UTC
  The scache vars aren't used by ports in the pbb & fast codepaths,
nor are they documented as inputs to the callbacks, so delete them
to avoid unused variable compiler warnings.
---
 sim/common/genmloop.sh | 4 ----
 1 file changed, 4 deletions(-)
  

Patch

diff --git a/sim/common/genmloop.sh b/sim/common/genmloop.sh
index e6683def4637..e9cb97d07a54 100755
--- a/sim/common/genmloop.sh
+++ b/sim/common/genmloop.sh
@@ -1159,8 +1159,6 @@  void
 void
 @prefix@_engine_run_full (SIM_CPU *current_cpu)
 {
-  SIM_DESC current_state = CPU_STATE (current_cpu);
-  SCACHE *scache = CPU_SCACHE_CACHE (current_cpu);
   /* virtual program counter */
   SEM_PC vpc;
 #if WITH_SEM_SWITCH_FULL
@@ -1251,8 +1249,6 @@  if [ x$fast = xyes ] ; then
 void
 @prefix@_engine_run_fast (SIM_CPU *current_cpu)
 {
-  SIM_DESC current_state = CPU_STATE (current_cpu);
-  SCACHE *scache = CPU_SCACHE_CACHE (current_cpu);
   /* virtual program counter */
   SEM_PC vpc;
 #if WITH_SEM_SWITCH_FAST