target/hppa: 64-bit CPUs start with space register hashing enabled
Turn on space register hashing for 64-bit CPUs when reset. Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
f7aa7fa97c
commit
75f73d5af1
@ -28,6 +28,7 @@
|
|||||||
#include "exec/translation-block.h"
|
#include "exec/translation-block.h"
|
||||||
#include "fpu/softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "tcg/tcg.h"
|
#include "tcg/tcg.h"
|
||||||
|
#include "hw/hppa/hppa_hardware.h"
|
||||||
|
|
||||||
static void hppa_cpu_set_pc(CPUState *cs, vaddr value)
|
static void hppa_cpu_set_pc(CPUState *cs, vaddr value)
|
||||||
{
|
{
|
||||||
@ -217,6 +218,10 @@ static void hppa_cpu_reset_hold(Object *obj, ResetType type)
|
|||||||
memset(env, 0, offsetof(CPUHPPAState, end_reset_fields));
|
memset(env, 0, offsetof(CPUHPPAState, end_reset_fields));
|
||||||
|
|
||||||
cpu_hppa_loaded_fr0(env);
|
cpu_hppa_loaded_fr0(env);
|
||||||
|
|
||||||
|
/* 64-bit machines start with space-register hashing enabled in %dr2 */
|
||||||
|
env->dr[2] = hppa_is_pa20(env) ? HPPA64_DIAG_SPHASH_ENABLE : 0;
|
||||||
|
|
||||||
cpu_hppa_put_psw(env, PSW_M);
|
cpu_hppa_put_psw(env, PSW_M);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user