]> xenbits.xensource.com Git - people/liuw/qemu.git/commitdiff
s3adsp1800: Set the MicroBlaze CPU version to 7.10.d
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Fri, 13 Nov 2015 15:55:00 +0000 (16:55 +0100)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Thu, 7 Jan 2016 13:57:26 +0000 (14:57 +0100)
Set the MicroBlaze CPU version to 7.10.d avoiding a runtime
warning due to an unset CPU version.

Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
hw/microblaze/petalogix_s3adsp1800_mmu.c

index 33811561bbf4271ab5a0592f2835ca727d6d9b18..1c84b75288eaa0c96512ca7c7e282f932639446e 100644 (file)
@@ -66,6 +66,7 @@ petalogix_s3adsp1800_init(MachineState *machine)
     MemoryRegion *sysmem = get_system_memory();
 
     cpu = MICROBLAZE_CPU(object_new(TYPE_MICROBLAZE_CPU));
+    object_property_set_str(OBJECT(cpu), "7.10.d", "version", &error_abort);
     object_property_set_bool(OBJECT(cpu), true, "realized", &error_abort);
 
     /* Attach emulated BRAM through the LMB.  */