Added SR to M68K reg_read and reg_write (#1507)
This commit is contained in:
@ -57,10 +57,11 @@ static void reg_read(CPUM68KState *env, unsigned int regid, void *value)
|
|||||||
case UC_M68K_REG_PC:
|
case UC_M68K_REG_PC:
|
||||||
*(int32_t *)value = env->pc;
|
*(int32_t *)value = env->pc;
|
||||||
break;
|
break;
|
||||||
|
case UC_M68K_REG_SR:
|
||||||
|
*(int32_t *)value = env->sr;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void reg_write(CPUM68KState *env, unsigned int regid, const void *value)
|
static void reg_write(CPUM68KState *env, unsigned int regid, const void *value)
|
||||||
@ -76,6 +77,9 @@ static void reg_write(CPUM68KState *env, unsigned int regid, const void *value)
|
|||||||
case UC_M68K_REG_PC:
|
case UC_M68K_REG_PC:
|
||||||
env->pc = *(uint32_t *)value;
|
env->pc = *(uint32_t *)value;
|
||||||
break;
|
break;
|
||||||
|
case UC_M68K_REG_SR:
|
||||||
|
env->sr = *(uint32_t *)value;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user