aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-19 05:47:32 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-20 22:13:28 -0500
commita4de6c88c9972325bb8ba89f5950fbb35b9cb4a7 (patch)
tree865c5919ffc847d089ca0272434f0e94055be9c6
parent09d4e6bb2fe97ea03e881405c5e8960cd5fd3263 (diff)
downloadgdb-a4de6c88c9972325bb8ba89f5950fbb35b9cb4a7.zip
gdb-a4de6c88c9972325bb8ba89f5950fbb35b9cb4a7.tar.gz
gdb-a4de6c88c9972325bb8ba89f5950fbb35b9cb4a7.tar.bz2
sim: common: delete unused scache in some mloop paths
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.
-rwxr-xr-xsim/common/genmloop.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/sim/common/genmloop.sh b/sim/common/genmloop.sh
index e6683de..e9cb97d 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