Upgrade to privileged architecture 1.7
[riscv-isa-sim.git] / riscv / htif.cc
index 5234c7bb7d2317a0ba378a0abcce11657f009c9f..ecaaf20d31c042d99fb11a820029d97b6de93ac0 100644 (file)
@@ -86,17 +86,17 @@ void htif_isasim_t::tick_once()
 
       switch (regno)
       {
-        case CSR_TOHOST:
+        case CSR_MTOHOST:
           old_val = proc->get_state()->tohost;
           if (write)
             proc->get_state()->tohost = new_val;
           break;
-        case CSR_FROMHOST:
+        case CSR_MFROMHOST:
           old_val = proc->get_state()->fromhost;
           if (write && old_val == 0)
             proc->get_state()->fromhost = new_val;
           break;
-        case CSR_RESET:
+        case CSR_MRESET:
           old_val = !proc->running();
           if (write)
           {