aboutsummaryrefslogtreecommitdiff
path: root/hw/core/generic-loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/core/generic-loader.c')
-rw-r--r--hw/core/generic-loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c
index cb0e684..fde32cb 100644
--- a/hw/core/generic-loader.c
+++ b/hw/core/generic-loader.c
@@ -147,6 +147,10 @@ static void generic_loader_realize(DeviceState *dev, Error **errp)
size = load_uimage_as(s->file, &entry, NULL, NULL, NULL, NULL,
as);
}
+
+ if (size < 0) {
+ size = load_targphys_hex_as(s->file, &entry, as);
+ }
}
if (size < 0 || s->force_raw) {