Revision 508b43ea target-alpha/op_helper.c

b/target-alpha/op_helper.c
1156 1156

  
1157 1157
/* PALcode support special instructions */
1158 1158
#if !defined (CONFIG_USER_ONLY)
1159
void helper_hw_rei (void)
1160
{
1161
    env->pc = env->ipr[IPR_EXC_ADDR] & ~3;
1162
    env->ipr[IPR_EXC_ADDR] = env->ipr[IPR_EXC_ADDR] & 1;
1163
    env->intr_flag = 0;
1164
    env->lock_addr = -1;
1165
    /* XXX: re-enable interrupts and memory mapping */
1166
}
1167

  
1168 1159
void helper_hw_ret (uint64_t a)
1169 1160
{
1170 1161
    env->pc = a & ~3;
1171 1162
    env->ipr[IPR_EXC_ADDR] = a & 1;
1172 1163
    env->intr_flag = 0;
1173 1164
    env->lock_addr = -1;
1174
    /* XXX: re-enable interrupts and memory mapping */
1175 1165
}
1176 1166

  
1177 1167
uint64_t helper_mfpr (int iprn, uint64_t val)

Also available in: Unified diff