From 013657ac8c0ac0c4c2582d3073f1ef180f1c5a02 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 12 Jun 2014 14:16:27 -0700 Subject: [PATCH] Set status.u64 to true on boot This isn't required by the ISA but it matches existing HW. --- riscv/processor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/processor.cc b/riscv/processor.cc index f47c8e5..8cece3e 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -40,7 +40,7 @@ void state_t::reset() // the ISA guarantees on boot that the PC is 0x2000 and the the processor // is in supervisor mode, and in 64-bit mode, if supported, with traps // and virtual memory disabled. - sr = SR_S | SR_S64; + sr = SR_S | SR_S64 | SR_U64; pc = 0x2000; // the following state is undefined upon boot-up, -- 2.30.2