Re:x86 Bare Metal Examples: Minimal operating systems, learn...
by andy_threos_io on Monday June 28, 2021 @04:50AM
(#27659468)
Nowadays, it's better to use x86_64 only. The 32 bit x86 has many drawbacks. The 64 bit is much cleaner and better in many many ways.
Also we found that Qemu or other Virtualization technology may cover up some of the hardware issues. Eg. Beside, that every hardware device (keyboard, usb, display, disk etc.) will have some simplified behavior, if you emulate an ARM cpu on x86_64 host, than the cache coherency will totally messed up on real hardware.
[ Parent
| on HN ]
Re:x86 Bare Metal Examples: Minimal operating systems, learn...
by cirosantilli on Monday June 28, 2021 @06:43AM
(#27660131)
Yes, absolutely correct about possible QEMU simplifications. One option would be to use gem5 which can simulate caches/memory more accurately (sometimes), but it is also way slower as a result, some indications at: https://github.com/cirosantilli/linux-kernel-module-cheat/tr...