Skip to contentSkip to conversation

hw/microblaze: Set MicroBlaze CPU version

PATCH In review Edgar E. Iglesias 2 participants 5 messages Nov 13, 2015 – Jan 7, 2016

lore
Share & tools
lore
#0 lore raw

cover hw/microblaze: Set MicroBlaze CPU version

From: "Edgar E. Iglesias" <[email protected]>

Hi,

This series avoids runtime warnings when using the petalogix s3adsp1800 and ml605 microblaze boards by explicitly selecting the MicroBlaze CPU versions.

The versions match the DTBs we ship.

Cheers,
Edgar

Edgar E. Iglesias (2):
s3adsp1800: Set the MicroBlaze CPU version to 7.10.d
petalogix-ml605: Set the MicroBlaze CPU version to 8.10.a

 hw/microblaze/petalogix_ml605_mmu.c      | 1 +
 hw/microblaze/petalogix_s3adsp1800_mmu.c | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 s3adsp1800: Set the MicroBlaze CPU version to 7.10.d

From: "Edgar E. Iglesias" <[email protected]>

Set the MicroBlaze CPU version to 7.10.d avoiding a runtime warning due to an unset CPU version.

---
 hw/microblaze/petalogix_s3adsp1800_mmu.c | 1 +
 1 file changed, 1 insertion(+)
hw/microblaze/petalogix_s3adsp1800_mmu.c +1 -0
index 3381156..1c84b75 100644
@@ -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.  */
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 petalogix-ml605: Set the MicroBlaze CPU version to 8.10.a

In reply to Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Set the MicroBlaze CPU version to 8.10.a avoiding a runtime warning due to an unset CPU version.

---
 hw/microblaze/petalogix_ml605_mmu.c | 1 +
 1 file changed, 1 insertion(+)
hw/microblaze/petalogix_ml605_mmu.c +1 -0
index 462060f..edfb30f 100644
@@ -81,6 +81,7 @@ petalogix_ml605_init(MachineState *machine)
 
     /* init CPUs */
     cpu = MICROBLAZE_CPU(object_new(TYPE_MICROBLAZE_CPU));
+    object_property_set_str(OBJECT(cpu), "8.10.a", "version", &error_abort);
     /* Use FPU but don't use floating point conversion and square
      * root instructions
      */
Signature · 1 line
1.9.1
Reviewed-by on the v1 series
#3 lore raw
In reply to Edgar E. Iglesias
Quoted 8 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Hi,

This series avoids runtime warnings when using the petalogix s3adsp1800 and ml605 microblaze boards by explicitly selecting the MicroBlaze CPU versions.

Quoted 9 lines

The versions match the DTBs we ship.

Cheers,
Edgar

Edgar E. Iglesias (2):
s3adsp1800: Set the MicroBlaze CPU version to 7.10.d
petalogix-ml605: Set the MicroBlaze CPU version to 8.10.a

Quoted 8 lines
 hw/microblaze/petalogix_ml605_mmu.c      | 1 +
 hw/microblaze/petalogix_s3adsp1800_mmu.c | 1 +
 2 files changed, 2 insertions(+)

--
1.9.1

#4 lore raw
In reply to Edgar E. Iglesias
Quoted 9 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Hi,

This series avoids runtime warnings when using the petalogix s3adsp1800 and ml605 microblaze boards by explicitly selecting the MicroBlaze CPU versions.

The versions match the DTBs we ship.

I've applied this series.

Cheers,
Edgar

Quoted 15 lines

Cheers,
Edgar

Edgar E. Iglesias (2):
s3adsp1800: Set the MicroBlaze CPU version to 7.10.d
petalogix-ml605: Set the MicroBlaze CPU version to 8.10.a

 hw/microblaze/petalogix_ml605_mmu.c      | 1 +
 hw/microblaze/petalogix_s3adsp1800_mmu.c | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
1.9.1