Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

writing bytes to CDI gives erroneous result on hw, should on qemu too #11

Open
quite opened this issue Mar 2, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@quite
Copy link

quite commented Mar 2, 2023

mc discovered that in hardware, writing bytes to CDI in this manner:

uint32_t cdi_writetest[CDI_WORDS] = {0xdeafbeef, 0xdeafbeef, 0xdeafbeef,
                                        0xdeafbeef, 0xdeafbeef, 0xdeafbeef,
                                         0xdeafbeef, 0xdeafbeef};
memcpy_s((void *)cdi, CDI_WORDS * 4, cdi_writetest, CDI_WORDS * 4);
puts("cdi: \r\n");
hexdump((uint8_t *)cdi, CDI_WORDS * 4);

results in CDI:

dededededededede0000000000000000
00000000000000000000000000000000

compared to writing words:

efbeafdeefbeafdeefbeafdeefbeafde
efbeafdeefbeafdeefbeafdeefbeafde

Perhaps QEMU should behave like this too

@quite quite changed the title writing bytes to CDI is bad on hardware, should be on qemu too? writing bytes to CDI gives erroneous result on hw, should on qemu too Mar 2, 2023
@mchack-work mchack-work self-assigned this Sep 11, 2023
@mchack-work mchack-work added the bug Something isn't working label Sep 11, 2023
@mchack-work
Copy link
Member

Investigate status in qemu. How hard is it to enforce word addressibility.

@mchack-work mchack-work removed their assignment Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants