Ayaz Akram has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/55023 )
Change subject: mem: Trigger NVM interface startup on a switch to timing
CPU mode
......................................................................
mem: Trigger NVM interface startup on a switch to timing CPU mode
Currently, if only NVM interface is used, switching from KVM to timing cpu
leads to a
segmentation fault. This change makes sure that the interface's startup
function is called
only for the interface which is used in a given simulation.
Change-Id: I85eab6e1de5c84076512c7653bf5d7ad0ff7e327
---
M src/mem/mem_ctrl.cc
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/mem/mem_ctrl.cc b/src/mem/mem_ctrl.cc
index 18b8476..7c37b67 100644
--- a/src/mem/mem_ctrl.cc
+++ b/src/mem/mem_ctrl.cc
@@ -1450,7 +1450,12 @@
// if we switched to timing mode, kick things into action,
// and behave as if we restored from a checkpoint
startup();
- dram->startup();
+ if (dram) {
+ dram->startup();
+ }
+ if (nvm) {
+ nvm->startup();
+ }
} else if (isTimingMode && !system()->isTimingMode()) {
// if we switch from timing mode, stop the refresh events to
// not cause issues with KVM
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/55023
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I85eab6e1de5c84076512c7653bf5d7ad0ff7e327
Gerrit-Change-Number: 55023
Gerrit-PatchSet: 1
Gerrit-Owner: Ayaz Akram <yazak...@ucdavis.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s