]> Git Repo - qemu.git/commit
hw/core: properly terminate loading .hex on EOF record
authorAlex Bennée <[email protected]>
Fri, 3 Apr 2020 19:11:49 +0000 (20:11 +0100)
committerAlex Bennée <[email protected]>
Tue, 7 Apr 2020 15:19:49 +0000 (16:19 +0100)
commit58d5e749d6663701f90931764f8bee6c76b0b1f1
tree0f1b7452c41f0c585b4ae90a54b0a0be2d6587db
parentbb55173cfb7bd69b79c4092bf524a32b0fdeddbb
hw/core: properly terminate loading .hex on EOF record

The https://makecode.microbit.org/#editor generates slightly weird
.hex files which work fine on a real microbit but causes QEMU to
choke. The reason is extraneous data after the EOF record which causes
the loader to attempt to write a bigger file than it should to the
"rom". According to the HEX file spec an EOF really should be the last
thing we process so lets do that.

Reported-by: Ursula Bennée <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <20200403191150[email protected]>
hw/core/loader.c
This page took 0.024549 seconds and 4 git commands to generate.