From: Andrew Waterman Date: Thu, 12 Jun 2014 21:16:27 +0000 (-0700) Subject: Set status.u64 to true on boot X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=013657ac8c0ac0c4c2582d3073f1ef180f1c5a02;p=riscv-isa-sim.git Set status.u64 to true on boot This isn't required by the ISA but it matches existing HW. --- 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,