* [PATCH/committed] sim: arm: add missing breaks to SWI processing
@ 2023-12-21 6:41 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2023-12-21 6:41 UTC (permalink / raw)
To: gdb-patches
Seems unlikely we want the remove syscall to fallthrough into the
rename syscall since we can't rename files that have been removed.
---
sim/arm/armos.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index 42d1dfb4ed1f..374861d7a5ec 100644
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -697,11 +697,13 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
case AngelSWI_Reason_Remove:
SWIremove (state,
ARMul_ReadWord (state, addr));
+ break;
case AngelSWI_Reason_Rename:
SWIrename (state,
ARMul_ReadWord (state, addr),
ARMul_ReadWord (state, addr + 4));
+ break;
}
}
else
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-21 6:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-21 6:41 [PATCH/committed] sim: arm: add missing breaks to SWI processing 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).