mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-07 06:57:42 -07:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include "exec/translation-block.h"
|
||||
#include "fpu/softfloat.h"
|
||||
#include "tcg/tcg.h"
|
||||
#include "hw/hppa/hppa_hardware.h"
|
||||
|
||||
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));
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue