]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: common: delete unused scache in some mloop paths
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Dec 2023 10:47:32 +0000 (05:47 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 03:13:28 +0000 (22:13 -0500)
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

index e6683def4637bc32e24fedd0fc02aa67b566bcad..e9cb97d07a54b8bf6af7bfd6ea744749060db0db 100755 (executable)
@@ -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