From ca7ea7e8205ef31e5569066885cdf4b07c104f8b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 12 Jan 2016 16:12:21 -0800 Subject: [PATCH] don't ignore data value when writing MIPI --- riscv/processor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/processor.cc b/riscv/processor.cc index 3206ed0..8347b9d 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -329,7 +329,7 @@ void processor_t::set_csr(int which, reg_t val) break; } case CSR_MIPI: { - state.mip |= MIP_MSIP; + state.mip = set_field(state.mip, MIP_MSIP, val & 1); break; } case CSR_MIE: { -- 2.30.2