This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: moxie sim fix


I'm checking in this obvious fix to the moxie simulator.

AG


2009-05-09  Anthony Green  <green@moxielogic.com>

	* interp.c (sim_resume): Add missing breaks in switch.


Index: sim/moxie/interp.c
===================================================================
RCS file: /cvs/src/src/sim/moxie/interp.c,v
retrieving revision 1.1
diff -u -r1.1 interp.c
--- sim/moxie/interp.c	1 May 2009 03:03:41 -0000	1.1
+++ sim/moxie/interp.c	10 May 2009 04:12:18 -0000
@@ -460,6 +460,7 @@
 		    TRACE("gsr");
 		    cpu.asregs.regs[a] = cpu.asregs.sregs[v];
 		  }
+		  break;
 		case 0x03: /* ssr */
 		  {
 		    int a = (inst >> 8) & 0xf;
@@ -467,6 +468,7 @@
 		    TRACE("ssr");
 		    cpu.asregs.sregs[v] = cpu.asregs.regs[a];
 		  }
+		  break;
 		default:
 		  TRACE("SIGILL2");
 		  cpu.asregs.exception = SIGILL;




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]