My Tutorial 1 QEMU output is different (wrong?) #92
-
First, let me start by thanking you for providing this tutorial. I have a slightly odd set-up. It is Ubuntu under Window Services for Linux 2. I had to install a few packages, but it seems to work. All of the make targets build without error. But the output I get from 'make qemu' does not match what is given in the README file. Maybe my set-up is not quite correct? Here's the output I see:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It’s been some time since I wrote this Readme, it might not be the exact same since the time I took a snapshot, because code might have changed slightly here or there. Does “make qemu” produce meaningful output in tutorials that write to the console, like 04 or 05? |
Beta Was this translation helpful? Give feedback.
-
Upon further inspection, it turns out that you found a bug that was introduced when I added LTO to tutorial 01. That is why your QEMU showed that no actual
Commit 53c1163 fixed this.
Thanks for reporting this! |
Beta Was this translation helpful? Give feedback.
Upon further inspection, it turns out that you found a bug that was introduced when I added LTO to tutorial 01.
For some reason, it messed with the address of the
_start
function, causing it to not be linked at0x80000
.That is why your QEMU showed that no actual
AArch64
instruction was living at0x80000
:Commit 53c1163 fixed this.
Now you should be able to see the
wfe
infinite loop starting at0x80000
like shown in the Readme:Thanks for reporting this!
Andre