2001-03-08 Joel Sherrill <joel@OARcorp.com>

* mips-stub.c: Removed warnings.
This commit is contained in:
Joel Sherrill
2002-03-08 17:36:58 +00:00
parent 9d64bc733d
commit db6cc07d1a
2 changed files with 8 additions and 5 deletions

View File

@@ -249,7 +249,7 @@ struct z0break
struct z0break *prev;
/* Location, preserved data */
unsigned *address;
unsigned char *address;
unsigned instr;
};
@@ -686,7 +686,6 @@ undoSStep (void)
static void
doSStep (void)
{
struct z0break *z0;
InstFmt inst;
instrBuffer.targetAddr = (unsigned *)(registers[PC]+4); /* set default */
@@ -1264,7 +1263,7 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
case 'Z': /* Add breakpoint */
{
int ret, type, len;
unsigned *address;
unsigned char *address;
struct z0break *z0;
ret = parse_zbreak(inBuffer, &type, &address, &len);
@@ -1323,7 +1322,7 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
/* Fill it */
z0->address = address;
if( z0->address == frame->epc )
if( z0->address == (unsigned char *) frame->epc )
{
/* re-asserting the breakpoint that put us in here, so
we'll add the breakpoint but leave the code in place
@@ -1391,7 +1390,7 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
else
{
int ret, type, len;
unsigned *address;
unsigned char *address;
struct z0break *z0;
ret = parse_zbreak(inBuffer, &type, &address, &len);