* [PATCH/committed] sim: common: delete unused scache in some mloop paths
@ 2023-12-21 3:28 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2023-12-21 3:28 UTC (permalink / raw)
To: gdb-patches
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(-)
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
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-21 3:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-21 3:28 [PATCH/committed] sim: common: delete unused scache in some mloop paths Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).