mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
hw/microblaze/s3adsp1800: Explicit CPU endianness
By default the machine's CPU endianness is 'big' order
('little-endian' property set to %false).
This corresponds to the default when this machine was added;
see commits 6a8b1ae202 "microblaze: Add petalogix s3a1800dsp
MMU linux ref-design." and 72b675caac "microblaze: Hook into
the build-system." which added:
[ "$target_cpu" = "microblaze" ] && target_bigendian=yes
Later commit 877fdc12b1 ("microblaze: Allow targeting
little-endian mb") added little-endian support, forgetting
to set the CPU endianness to little-endian. Not an issue
since this property was never used, but we will use it soon,
so explicit the endianness to get the expected behavior.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Acked-by: Alistair Francis <[email protected]>
Reviewed-by: Edgar E. Iglesias <[email protected]>
Message-Id: <[email protected]>
This commit is contained in:
1 parent
181b3a7bb0
commit
c36ec3a965
1 file changed
+2
@@ -71,6 +71,8 @@ petalogix_s3adsp1800_init(MachineState *machine)
|
||||
|
||||
cpu = MICROBLAZE_CPU(object_new(TYPE_MICROBLAZE_CPU));
|
||||
object_property_set_str(OBJECT(cpu), "version", "7.10.d", &error_abort);
|
||||
object_property_set_bool(OBJECT(cpu), "little-endian",
|
||||
!TARGET_BIG_ENDIAN, &error_abort);
|
||||
qdev_realize(DEVICE(cpu), NULL, &error_abort);
|
||||
|
||||
/* Attach emulated BRAM through the LMB. */
|
||||
|
||||
Reference in new issue
Block a user