Hi All,

I am trying to add a simple simple BadDevice device to the ALPHA_FS system,
but I am not sure what pio_addr to specify in FSConfig.py.

I am going to use BadDevice as a model for a really really simple "read from
a register"/"write to a register" device, so it seemed like starting with
the basic BadDevice model that simply panics upon attempting read/write was
a good start.

Is there a given address range that is unused in the ALPHA_FS system in
gem5?  How should I choose this pio_addr value?  I will only need to be
accessing this "device" from kernel space, so I was hoping to simply
inb(pio_addr) and that this would cause a panic?

Further, when specifying pio_addr, it must be a physical address, right?
Thus, I'll need to know its corresponding virtual address when trying to
read from the "device" in the linux kernel?  Or is there some section of
memory in ALPHA_FS that is an identity mapping when doing address
translation?  Anyone know?


Thanks much,

Alex
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to