I'm trying to write a simple virtual hardware for QEMU. This hw must only return the value 0 every time I read at 0x6f8 address.
It looks like simple but I'm not sure... this is what I do...
I wrote a file in hw dir called hwfitt.c and implements hwfitt_ioport_read and *hwfitt_init functions.
In hwfitt_ioport_read must be a function that implements the hardware read control right?
I take for instance parallel.c code and I write hwfitt function call in
files where parallel's function are called (pc.c vl.c vl.h) and
modified make file. I didn't implement hwupdate_update_irq as in
parallel code. Is an error?
This is my hwfitt.c code. Can you support me?