aboutsummaryrefslogtreecommitdiff
path: root/sim/or1k/or1k.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/or1k/or1k.c')
-rw-r--r--sim/or1k/or1k.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/or1k/or1k.c b/sim/or1k/or1k.c
index 2d1f7f8..73ab6f0 100644
--- a/sim/or1k/or1k.c
+++ b/sim/or1k/or1k.c
@@ -206,6 +206,10 @@ or1k_cpu_init (SIM_DESC sd, sim_cpu *current_cpu, const USI or1k_vr,
/* Clear the floating point control status register. */
SET_H_SYS_FPCSR (0);
+
+ /* Set this as the one and only core. */
+ SET_H_SYS_NUMCORES (1);
+ SET_H_SYS_COREID (0);
}
void