Hi all,
I tried adding a device such as is shown in ASPLOS-13 (pg.107-115). My
first question is: what do I need to modify in the "Modified a copy of the
Alpha Console to access 0x801fcabcde0 at boot" to display the message
during the boot???
Secondly, I made an application (my_app.c -> shown below), created a
benchmark and added it to the image. So, if I run the command
(build/ARM/gem5.opt configs/example/fs.py -b my_app) should not appear any
message like "Device ...: Write request at offset"??? (implemented in the
hellodevice.c file)
Thirdly, if I add the following lines in the se.fy script:
+ system.hello = HelloDevice(pio_addr=0x801fcabcde0,
devicename="HelloDevice1")
+ system.hello.pio = system.membus.port
I can see in the conf.in file that my device is connected on the bus.
So is there any way I could access the device directly from an
application??? (i.e. as shown in my_app.c)???
The last question is about using a device with an ARM processor.
Looking at the RealView.py file, I saw that has some devices fakes... So, I
could use the same idea of using an application to directly access my
device?? (i.e. pointing to the uart1_fake address: 0x1000a000)
So if someone could help me with some tips, I WOULD BE GRATEFUL.
Thanks in advance!!
Rafael Garibotti
--------------------------------------------------
-- my_app.c
--------------------------------------------------
#include <stdio.h>
int main(){
volatile int *ptr = (int *) 0x801fcabcde0; //device address
*ptr=10;
printf("Device accessed (Value:%d)\n", *ptr);
return 0;
}
--------------------------------------------------
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users