[PATCH/committed,3/5] sim: m32r: fix missing break statement

Message ID 20240111033747.17795-3-vapier@gentoo.org
State New
Headers
Series [PATCH/committed,1/5] sim: m32r: cleanup unused variables |

Checks

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

Commit Message

Mike Frysinger Jan. 11, 2024, 3:37 a.m. UTC
  The ftime syscall should not fallthrough to the sync syscall.
Clearly the code was missing a break statement.
---
 sim/m32r/traps.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/sim/m32r/traps.c b/sim/m32r/traps.c
index c5191989d7fd..9ffa3bb15d94 100644
--- a/sim/m32r/traps.c
+++ b/sim/m32r/traps.c
@@ -407,6 +407,7 @@  m32r_trap (SIM_CPU *current_cpu, PCADDR pc, int num)
 		  errcode = EINVAL;
 		}
 	    }
+	    break;
 
 	  case TARGET_LINUX_SYS_sync:
 	    sync ();