[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

Reply via email to