Yu-hsin Wang has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/43104 )
Change subject: sim: Add a copied symbol table for the kernel on physical
address
......................................................................
sim: Add a copied symbol table for the kernel on physical address
In fs simulation, the kernel is loaded to physical address first and
then it would relocate itself to virtual address. The address which
using by kernel symbol table is virtual address. To debug the process
before kernel relocated to virutal memory, we need another copy of
symbol table for physical address.
Change-Id: I38107ff94b301df1a5170dd98774df88cfb02298
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/43104
Reviewed-by: Gabe Black <[email protected]>
Maintainer: Gabe Black <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/sim/kernel_workload.cc
1 file changed, 7 insertions(+), 0 deletions(-)
Approvals:
Gabe Black: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/sim/kernel_workload.cc b/src/sim/kernel_workload.cc
index 434e317..62e9455 100644
--- a/src/sim/kernel_workload.cc
+++ b/src/sim/kernel_workload.cc
@@ -61,6 +61,13 @@
});
kernelSymtab = kernelObj->symtab();
+ auto initKernelSymtab = kernelSymtab.mask(_loadAddrMask)
+ ->offset(_loadAddrOffset)
+ ->rename([](std::string &name) {
+ name = "kernel_init." + name;
+ });
+
+ Loader::debugSymbolTable.insert(*initKernelSymtab);
Loader::debugSymbolTable.insert(kernelSymtab);
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/43104
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: I38107ff94b301df1a5170dd98774df88cfb02298
Gerrit-Change-Number: 43104
Gerrit-PatchSet: 4
Gerrit-Owner: Yu-hsin Wang <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Earl Ou <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Yu-hsin Wang <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s