Make it compile again for -DTARGET_SKY
This commit is contained in:
parent
fc96bc860d
commit
ce4713dc3b
1 changed files with 33 additions and 32 deletions
|
@ -632,11 +632,12 @@ sim_store_register (sd,rn,memory,length)
|
||||||
HI1 = T2H_8(*(unsigned64*)memory);
|
HI1 = T2H_8(*(unsigned64*)memory);
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* end-sanitize-r5900 */
|
/* end-sanitize-r5900 */
|
||||||
|
|
||||||
/* start-sanitize-sky */
|
/* start-sanitize-sky */
|
||||||
#ifdef TARGET_SKY
|
#ifdef TARGET_SKY
|
||||||
else if( rn > NUM_R5900_REGS ) {
|
if (rn > NUM_R5900_REGS)
|
||||||
|
{
|
||||||
rn = rn - NUM_R5900_REGS;
|
rn = rn - NUM_R5900_REGS;
|
||||||
|
|
||||||
if( rn < 16 )
|
if( rn < 16 )
|
||||||
|
@ -721,11 +722,12 @@ sim_fetch_register (sd,rn,memory,length)
|
||||||
*((unsigned64*)memory) = H2T_8(HI1);
|
*((unsigned64*)memory) = H2T_8(HI1);
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* end-sanitize-r5900 */
|
/* end-sanitize-r5900 */
|
||||||
|
|
||||||
/* start-sanitize-sky */
|
/* start-sanitize-sky */
|
||||||
#ifdef TARGET_SKY
|
#ifdef TARGET_SKY
|
||||||
if( rn > NUM_R5900_REGS ) {
|
if( rn > NUM_R5900_REGS )
|
||||||
|
{
|
||||||
rn = rn - NUM_R5900_REGS;
|
rn = rn - NUM_R5900_REGS;
|
||||||
|
|
||||||
if( rn < 16 )
|
if( rn < 16 )
|
||||||
|
@ -745,7 +747,6 @@ sim_fetch_register (sd,rn,memory,length)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* end-sanitize-sky */
|
/* end-sanitize-sky */
|
||||||
|
|
||||||
/* Any floating point register */
|
/* Any floating point register */
|
||||||
|
|
Loading…
Reference in a new issue