There are several ways to address this. Can I ask you what are you trying to access first? Normal memory or device memory?
Giacomo ________________________________ From: gem5-users <[email protected]> on behalf of 朱海周 <[email protected]> Sent: 25 December 2019 06:45 To: [email protected] <[email protected]> Subject: [gem5-users] how to disable MMU or directly access physical address ? [EXTERNAL EMAIL] Hi all, I am new to the gem5, and ran "./build/ARM/gem5.opt ./config/learning_gem5/part1/simple.py -c ./tests/test-progs/hello/bin/linux/hello" successfully. But when I changed hello.c to the following, and I got an error as "panic: Page table fault when accessing virtual address 0x10000000". #include <stdio.h> #define ADDR *(volatile unsigned int *) (0x10000000) int main() { ADDR = 0x12345678; int read_data; read_data = ADDR; printf("Hello world!\n"); } My real need was to access DDR3_1600_8x8()'s address region directly as physical address. Could you please teach me how to disable MMU or how to directly access physical address in hello.c? BRs Haizhou _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
