projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
riscv: remove dependency on num_cores
[riscv-isa-sim.git]
/
riscv
/
interactive.cc
diff --git
a/riscv/interactive.cc
b/riscv/interactive.cc
index 623c425c7f7f85b63f5a6eeb29506ae2f58de6ef..ee8837522e163649268e3f74e4fb80c941420fd5 100644
(file)
--- a/
riscv/interactive.cc
+++ b/
riscv/interactive.cc
@@
-24,7
+24,7
@@
processor_t *sim_t::get_core(const std::string& i)
{
char *ptr;
unsigned long p = strtoul(i.c_str(), &ptr, 10);
- if (*ptr || p >=
num_cores
())
+ if (*ptr || p >=
procs.size
())
throw trap_interactive();
return get_core(p);
}