Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
63 user(s) are online (54 user(s) are browsing Forums)

Members: 0
Guests: 63

more...

Support us!

Headlines

 
  Register To Post  

« 1 (2)
Re: PCI device memory from BAR under qemu alwys zero
Just popping in
Just popping in


See User information
@Hans

Quote:

If it's the latter, then check whether the master and memory enable bits are set in the PCI_COMMAND register (enable I/O accesses
too if you have an I/O BAR). You need to enable those bits in order to access the memory.


I think that could be what I'm missing. At least this I never read/heard of yet, compared to what balaton, jeorg etc wrote. That
all I knew from the virtio spec etc.

Another topic which comes to my mind. do I have take care of the cpu caches? Maybe I just writing/reading into/from the cache and the real memory isn't updated?

Go to top
Re: PCI device memory from BAR under qemu alwys zero
Just popping in
Just popping in


See User information
@Hans

Yeap that made the trick:

pciDevice->WriteConfigWordPCI_COMMAND,0x002 pciDevice->ReadConfigWordPCI_COMMAND ) );


Now i get other stuff than zeros!

Go to top
Re: PCI device memory from BAR under qemu alwys zero
Home away from home
Home away from home


See User information
@MigthyMax

Great that you got it working.

Quote:
Another topic which comes to my mind. do I have take care of the cpu caches? Maybe I just writing/reading into/from the cache and the real memory isn't updated?

No. Cache behaviour isn't emulated. You can assume that the caches are always coherent, and flushing/invalidating isn't necessary.

At least, I've never seen physical virtio hardware (which could theoretically be done).

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
6 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project