All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/9]  Extend Microblaze Properties
@ 2015-06-19  4:16 Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 1/9] target-microblaze: Rename the usefpu variable Alistair Francis
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Alistair Francis @ 2015-06-19  4:16 UTC (permalink / raw)
  To: qemu-devel, edgar.iglesias
  Cc: edgar.iglesias, peter.crosthwaite, alistair.francis

This patch series extends the MicroBlaze properties
that I have been working on. It applies on top of my
original work:
'Add Microblaze configuration options'.

This patch series converts various MicroBlaze PVR registers
to properties. This then allows the individual Microblaze
machine reset functions to be removed as well as some other
dead code.

V4:
 - Add some macros
V3:
 - Update the pvr register to be a uint8
 - Add the 8.50.a version to the version_mask


Alistair Francis (9):
  target-microblaze: Rename the usefpu variable
  target-microblaze: Convert use-mmu to a CPU property
  target-microblaze: Convert dcache-writeback to a CPU property
  target-microblaze: Convert endi to a CPU property
  target-microblaze: Convert version_mask to a CPU property
  target-microblaze: Convert pvr-full to a CPU property
  ml605_mmu: Move the hardcoded values to the init function
  s3adsp1800: Remove the hardcoded values from the reset
  target-microblaze: Remove dead code

 hw/microblaze/petalogix_ml605_mmu.c      |   23 +++-----
 hw/microblaze/petalogix_s3adsp1800_mmu.c |    9 +---
 target-microblaze/cpu-qom.h              |    7 ++-
 target-microblaze/cpu.c                  |   79 +++++++++++++++++++++++++----
 target-microblaze/cpu.h                  |    8 ++-
 target-microblaze/helper.c               |    6 +-
 target-microblaze/translate.c            |    6 +-
 7 files changed, 95 insertions(+), 43 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH v4 1/9] target-microblaze: Rename the usefpu variable
  2015-06-19  4:16 [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Alistair Francis
@ 2015-06-19  4:16 ` Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 4/9] target-microblaze: Convert endi to a CPU property Alistair Francis
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Alistair Francis @ 2015-06-19  4:16 UTC (permalink / raw)
  To: qemu-devel, edgar.iglesias
  Cc: edgar.iglesias, peter.crosthwaite, alistair.francis

Rename the usefpu variable to use_fpu.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---
 target-microblaze/cpu-qom.h   |    2 +-
 target-microblaze/cpu.c       |    8 ++++----
 target-microblaze/translate.c |    6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/target-microblaze/cpu-qom.h b/target-microblaze/cpu-qom.h
index a6474f9..aa9c032 100644
--- a/target-microblaze/cpu-qom.h
+++ b/target-microblaze/cpu-qom.h
@@ -63,7 +63,7 @@ typedef struct MicroBlazeCPU {
     struct {
         bool stackprot;
         uint32_t base_vectors;
-        uint8_t usefpu;
+        uint8_t use_fpu;
     } cfg;
 
     CPUMBState env;
diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c
index 13ae49a..a6b6fd7 100644
--- a/target-microblaze/cpu.c
+++ b/target-microblaze/cpu.c
@@ -114,10 +114,10 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **errp)
                         | 0;
 
     env->pvr.regs[0] |= (cpu->cfg.stackprot ? PVR0_SPROT_MASK : 0) |
-                        (cpu->cfg.usefpu ? PVR0_USE_FPU_MASK : 0);
+                        (cpu->cfg.use_fpu ? PVR0_USE_FPU_MASK : 0);
 
-    env->pvr.regs[2] |= (cpu->cfg.usefpu ? PVR2_USE_FPU_MASK : 0) |
-                        (cpu->cfg.usefpu > 1 ? PVR2_USE_FPU2_MASK : 0);
+    env->pvr.regs[2] |= (cpu->cfg.use_fpu ? PVR2_USE_FPU_MASK : 0) |
+                        (cpu->cfg.use_fpu > 1 ? PVR2_USE_FPU2_MASK : 0);
 
     env->pvr.regs[10] = 0x0c000000; /* Default to spartan 3a dsp family.  */
     env->pvr.regs[11] = PVR11_USE_MMU | (16 << 17);
@@ -167,7 +167,7 @@ static Property mb_properties[] = {
      * If use-fpu = 2 - Floating point conversion and square root instructions
      *                  are enabled
      */
-    DEFINE_PROP_UINT8("use-fpu", MicroBlazeCPU, cfg.usefpu, 2),
+    DEFINE_PROP_UINT8("use-fpu", MicroBlazeCPU, cfg.use_fpu, 2),
     DEFINE_PROP_END_OF_LIST(),
 };
 
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c
index 8187700..1f5fe9a 100644
--- a/target-microblaze/translate.c
+++ b/target-microblaze/translate.c
@@ -1411,11 +1411,11 @@ static void dec_rts(DisasContext *dc)
 
 static int dec_check_fpuv2(DisasContext *dc)
 {
-    if ((dc->cpu->cfg.usefpu != 2) && (dc->tb_flags & MSR_EE_FLAG)) {
+    if ((dc->cpu->cfg.use_fpu != 2) && (dc->tb_flags & MSR_EE_FLAG)) {
         tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_FPU);
         t_gen_raise_exception(dc, EXCP_HW_EXCP);
     }
-    return (dc->cpu->cfg.usefpu == 2) ? 0 : PVR2_USE_FPU2_MASK;
+    return (dc->cpu->cfg.use_fpu == 2) ? 0 : PVR2_USE_FPU2_MASK;
 }
 
 static void dec_fpu(DisasContext *dc)
@@ -1424,7 +1424,7 @@ static void dec_fpu(DisasContext *dc)
 
     if ((dc->tb_flags & MSR_EE_FLAG)
           && (dc->cpu->env.pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK)
-          && (dc->cpu->cfg.usefpu != 1)) {
+          && (dc->cpu->cfg.use_fpu != 1)) {
         tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP);
         t_gen_raise_exception(dc, EXCP_HW_EXCP);
         return;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH v4 4/9] target-microblaze: Convert endi to a CPU property
  2015-06-19  4:16 [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 1/9] target-microblaze: Rename the usefpu variable Alistair Francis
@ 2015-06-19  4:16 ` Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 6/9] target-microblaze: Convert pvr-full " Alistair Francis
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Alistair Francis @ 2015-06-19  4:16 UTC (permalink / raw)
  To: qemu-devel, edgar.iglesias
  Cc: edgar.iglesias, peter.crosthwaite, alistair.francis

Originally the endi PVR bits were manually set for each machine. This
is a hassle and difficult to read, instead set them based on the CPU
properties.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---
 hw/microblaze/petalogix_ml605_mmu.c |    2 +-
 target-microblaze/cpu-qom.h         |    1 +
 target-microblaze/cpu.c             |    4 +++-
 target-microblaze/cpu.h             |    2 +-
 4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c
index 995a579..e9adc2f 100644
--- a/hw/microblaze/petalogix_ml605_mmu.c
+++ b/hw/microblaze/petalogix_ml605_mmu.c
@@ -70,7 +70,6 @@ static void machine_cpu_reset(MicroBlazeCPU *cpu)
 
     env->pvr.regs[10] = 0x0e000000; /* virtex 6 */
     /* setup pvr to match kernel setting */
-    env->pvr.regs[0] |= PVR0_ENDI;
     env->pvr.regs[0] = (env->pvr.regs[0] & ~PVR0_VERSION_MASK) | (0x14 << 8);
     env->pvr.regs[4] = 0xc56b8000;
     env->pvr.regs[5] = 0xc56be000;
@@ -99,6 +98,7 @@ petalogix_ml605_init(MachineState *machine)
     object_property_set_int(OBJECT(cpu), 1, "use-fpu", &error_abort);
     object_property_set_bool(OBJECT(cpu), true, "dcache-writeback",
                              &error_abort);
+    object_property_set_bool(OBJECT(cpu), true, "endianness", &error_abort);
     object_property_set_bool(OBJECT(cpu), true, "realized", &error_abort);
 
     /* Attach emulated BRAM through the LMB.  */
diff --git a/target-microblaze/cpu-qom.h b/target-microblaze/cpu-qom.h
index 3b6165d..d1d814b 100644
--- a/target-microblaze/cpu-qom.h
+++ b/target-microblaze/cpu-qom.h
@@ -66,6 +66,7 @@ typedef struct MicroBlazeCPU {
         uint8_t use_fpu;
         bool use_mmu;
         bool dcache_writeback;
+        bool endi;
     } cfg;
 
     CPUMBState env;
diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c
index 92c51a0..8429275 100644
--- a/target-microblaze/cpu.c
+++ b/target-microblaze/cpu.c
@@ -114,7 +114,8 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **errp)
 
     env->pvr.regs[0] |= (cpu->cfg.stackprot ? PVR0_SPROT_MASK : 0) |
                         (cpu->cfg.use_fpu ? PVR0_USE_FPU_MASK : 0) |
-                        (cpu->cfg.use_mmu ? PVR0_USE_MMU_MASK : 0);
+                        (cpu->cfg.use_mmu ? PVR0_USE_MMU_MASK : 0) |
+                        (cpu->cfg.endi ? PVR0_ENDI_MASK : 0);
 
     env->pvr.regs[2] |= (cpu->cfg.use_fpu ? PVR2_USE_FPU_MASK : 0) |
                         (cpu->cfg.use_fpu > 1 ? PVR2_USE_FPU2_MASK : 0);
@@ -174,6 +175,7 @@ static Property mb_properties[] = {
     DEFINE_PROP_BOOL("use-mmu", MicroBlazeCPU, cfg.use_mmu, true),
     DEFINE_PROP_BOOL("dcache-writeback", MicroBlazeCPU, cfg.dcache_writeback,
                      false),
+    DEFINE_PROP_BOOL("endianness", MicroBlazeCPU, cfg.endi, false),
     DEFINE_PROP_END_OF_LIST(),
 };
 
diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index 54e41e8..0f82abd 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -124,7 +124,7 @@ typedef struct CPUMBState CPUMBState;
 #define PVR0_USE_DCACHE_MASK            0x01000000
 #define PVR0_USE_MMU_MASK               0x00800000
 #define PVR0_USE_BTC			0x00400000
-#define PVR0_ENDI			0x00200000
+#define PVR0_ENDI_MASK                  0x00200000
 #define PVR0_FAULT			0x00100000
 #define PVR0_VERSION_MASK               0x0000FF00
 #define PVR0_USER1_MASK                 0x000000FF
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH v4 6/9] target-microblaze: Convert pvr-full to a CPU property
  2015-06-19  4:16 [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 1/9] target-microblaze: Rename the usefpu variable Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 4/9] target-microblaze: Convert endi to a CPU property Alistair Francis
@ 2015-06-19  4:16 ` Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 7/9] ml605_mmu: Move the hardcoded values to the init function Alistair Francis
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Alistair Francis @ 2015-06-19  4:16 UTC (permalink / raw)
  To: qemu-devel, edgar.iglesias
  Cc: edgar.iglesias, peter.crosthwaite, alistair.francis

Originally the pvr-full PVR bits were manually set for each machine. This
is a hassle and difficult to read, instead set them based on the CPU
properties.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---
V4:
 - Macro out the PVR encodings
V3:
 - Convert PVR to an 8-bit uint instead of a bool
V2:
 - Rename DTS mapping

 target-microblaze/cpu-qom.h |    1 +
 target-microblaze/cpu.c     |    7 ++++---
 target-microblaze/cpu.h     |    4 +++-
 target-microblaze/helper.c  |    4 ++--
 4 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/target-microblaze/cpu-qom.h b/target-microblaze/cpu-qom.h
index 7da25fa..34f6273 100644
--- a/target-microblaze/cpu-qom.h
+++ b/target-microblaze/cpu-qom.h
@@ -68,6 +68,7 @@ typedef struct MicroBlazeCPU {
         bool dcache_writeback;
         bool endi;
         char *version;
+        uint8_t pvr;
     } cfg;
 
     CPUMBState env;
diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c
index df3dd89..ac390ce 100644
--- a/target-microblaze/cpu.c
+++ b/target-microblaze/cpu.c
@@ -130,8 +130,7 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **errp)
 
     qemu_init_vcpu(cs);
 
-    env->pvr.regs[0] = PVR0_PVR_FULL_MASK \
-                       | PVR0_USE_BARREL_MASK \
+    env->pvr.regs[0] = PVR0_USE_BARREL_MASK \
                        | PVR0_USE_DIV_MASK \
                        | PVR0_USE_HW_MUL_MASK \
                        | PVR0_USE_EXC_MASK \
@@ -166,7 +165,8 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **errp)
                         (cpu->cfg.use_fpu ? PVR0_USE_FPU_MASK : 0) |
                         (cpu->cfg.use_mmu ? PVR0_USE_MMU_MASK : 0) |
                         (cpu->cfg.endi ? PVR0_ENDI_MASK : 0) |
-                        (version_code << 16);
+                        (version_code << 16) |
+                        (cpu->cfg.pvr == C_PVR_FULL ? PVR0_PVR_FULL_MASK : 0);
 
     env->pvr.regs[2] |= (cpu->cfg.use_fpu ? PVR2_USE_FPU_MASK : 0) |
                         (cpu->cfg.use_fpu > 1 ? PVR2_USE_FPU2_MASK : 0);
@@ -228,6 +228,7 @@ static Property mb_properties[] = {
                      false),
     DEFINE_PROP_BOOL("endianness", MicroBlazeCPU, cfg.endi, false),
     DEFINE_PROP_STRING("version", MicroBlazeCPU, cfg.version),
+    DEFINE_PROP_UINT8("pvr", MicroBlazeCPU, cfg.pvr, C_PVR_FULL),
     DEFINE_PROP_END_OF_LIST(),
 };
 
diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index 0f82abd..0dd164f 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -212,7 +212,9 @@ typedef struct CPUMBState CPUMBState;
 /* MSR Reset value PVR mask */
 #define PVR11_MSR_RESET_VALUE_MASK      0x000007FF
 
-
+#define C_PVR_NONE                      0
+#define C_PVR_BASIC                     1
+#define C_PVR_FULL                      2
 
 /* CPU flags.  */
 
diff --git a/target-microblaze/helper.c b/target-microblaze/helper.c
index 5156c12..8257b0e 100644
--- a/target-microblaze/helper.c
+++ b/target-microblaze/helper.c
@@ -58,8 +58,8 @@ int mb_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int rw,
     mmu_available = 0;
     if (cpu->cfg.use_mmu) {
         mmu_available = 1;
-        if ((env->pvr.regs[0] & PVR0_PVR_FULL_MASK)
-            && (env->pvr.regs[11] & PVR11_USE_MMU) != PVR11_USE_MMU) {
+        if ((cpu->cfg.pvr == C_PVR_FULL) &&
+            (env->pvr.regs[11] & PVR11_USE_MMU) != PVR11_USE_MMU) {
             mmu_available = 0;
         }
     }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH v4 7/9] ml605_mmu: Move the hardcoded values to the init function
  2015-06-19  4:16 [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Alistair Francis
                   ` (2 preceding siblings ...)
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 6/9] target-microblaze: Convert pvr-full " Alistair Francis
@ 2015-06-19  4:16 ` Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 8/9] s3adsp1800: Remove the hardcoded values from the reset Alistair Francis
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Alistair Francis @ 2015-06-19  4:16 UTC (permalink / raw)
  To: qemu-devel, edgar.iglesias
  Cc: edgar.iglesias, peter.crosthwaite, alistair.francis

Move the hard coded register values to the init function.
This also allows the entire reset function to be deleted, as
PVR registers are now preserved on reset.

The hardcoded PVR0 values can be removed as they are setting
the endianness and stack protection, which is already done
or invalid.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---
V2:
 - Don't set PVR0

 hw/microblaze/petalogix_ml605_mmu.c |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c
index 609c90b..ed84a37 100644
--- a/hw/microblaze/petalogix_ml605_mmu.c
+++ b/hw/microblaze/petalogix_ml605_mmu.c
@@ -64,17 +64,6 @@
 #define SPI_IRQ             4
 #define UART16550_IRQ       5
 
-static void machine_cpu_reset(MicroBlazeCPU *cpu)
-{
-    CPUMBState *env = &cpu->env;
-
-    env->pvr.regs[10] = 0x0e000000; /* virtex 6 */
-    /* setup pvr to match kernel setting */
-    env->pvr.regs[0] |= (0x14 << 8);
-    env->pvr.regs[4] = 0xc56b8000;
-    env->pvr.regs[5] = 0xc56be000;
-}
-
 static void
 petalogix_ml605_init(MachineState *machine)
 {
@@ -205,10 +194,15 @@ petalogix_ml605_init(MachineState *machine)
         }
     }
 
+    /* setup PVR to match kernel settings */
+    cpu->env.pvr.regs[4] = 0xc56b8000;
+    cpu->env.pvr.regs[5] = 0xc56be000;
+    cpu->env.pvr.regs[10] = 0x0e000000; /* virtex 6 */
+
     microblaze_load_kernel(cpu, MEMORY_BASEADDR, ram_size,
                            machine->initrd_filename,
                            BINARY_DEVICE_TREE_FILE,
-                           machine_cpu_reset);
+                           NULL);
 
 }
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH v4 8/9] s3adsp1800: Remove the hardcoded values from the reset
  2015-06-19  4:16 [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Alistair Francis
                   ` (3 preceding siblings ...)
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 7/9] ml605_mmu: Move the hardcoded values to the init function Alistair Francis
@ 2015-06-19  4:16 ` Alistair Francis
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 9/9] target-microblaze: Remove dead code Alistair Francis
  2015-06-21 11:44 ` [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Edgar E. Iglesias
  6 siblings, 0 replies; 8+ messages in thread
From: Alistair Francis @ 2015-06-19  4:16 UTC (permalink / raw)
  To: qemu-devel, edgar.iglesias
  Cc: edgar.iglesias, peter.crosthwaite, alistair.francis

Remove the hardcoded values from the machine specific reset
function, as the same values are already set in the standard
MicroBlaze reset.

This also allows the entire reset function to be deleted, as
PVR registers are now preserved on reset.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---
 hw/microblaze/petalogix_s3adsp1800_mmu.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/hw/microblaze/petalogix_s3adsp1800_mmu.c b/hw/microblaze/petalogix_s3adsp1800_mmu.c
index 84f6e74..7109e63 100644
--- a/hw/microblaze/petalogix_s3adsp1800_mmu.c
+++ b/hw/microblaze/petalogix_s3adsp1800_mmu.c
@@ -51,13 +51,6 @@
 #define ETHLITE_IRQ         1
 #define UARTLITE_IRQ        3
 
-static void machine_cpu_reset(MicroBlazeCPU *cpu)
-{
-    CPUMBState *env = &cpu->env;
-
-    env->pvr.regs[10] = 0x0c000000; /* spartan 3a dsp family.  */
-}
-
 static void
 petalogix_s3adsp1800_init(MachineState *machine)
 {
@@ -132,7 +125,7 @@ petalogix_s3adsp1800_init(MachineState *machine)
     microblaze_load_kernel(cpu, ddr_base, ram_size,
                            machine->initrd_filename,
                            BINARY_DEVICE_TREE_FILE,
-                           machine_cpu_reset);
+                           NULL);
 }
 
 static QEMUMachine petalogix_s3adsp1800_machine = {
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH v4 9/9] target-microblaze: Remove dead code
  2015-06-19  4:16 [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Alistair Francis
                   ` (4 preceding siblings ...)
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 8/9] s3adsp1800: Remove the hardcoded values from the reset Alistair Francis
@ 2015-06-19  4:16 ` Alistair Francis
  2015-06-21 11:44 ` [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Edgar E. Iglesias
  6 siblings, 0 replies; 8+ messages in thread
From: Alistair Francis @ 2015-06-19  4:16 UTC (permalink / raw)
  To: qemu-devel, edgar.iglesias
  Cc: edgar.iglesias, peter.crosthwaite, alistair.francis

This code is already being run in the mb_cpu_realizefn()
function. As PVR registers are preserved on reset this
code is not required.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---
 target-microblaze/cpu.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c
index ac390ce..c592bf7 100644
--- a/target-microblaze/cpu.c
+++ b/target-microblaze/cpu.c
@@ -179,10 +179,6 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **errp)
 
     env->sregs[SR_PC] = cpu->cfg.base_vectors;
 
-#if defined(CONFIG_USER_ONLY)
-    env->pvr.regs[10] = 0x0c000000; /* Spartan 3a dsp.  */
-#endif
-
     mcc->parent_realize(dev, errp);
 }
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH v4 0/9]  Extend Microblaze Properties
  2015-06-19  4:16 [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Alistair Francis
                   ` (5 preceding siblings ...)
  2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 9/9] target-microblaze: Remove dead code Alistair Francis
@ 2015-06-21 11:44 ` Edgar E. Iglesias
  6 siblings, 0 replies; 8+ messages in thread
From: Edgar E. Iglesias @ 2015-06-21 11:44 UTC (permalink / raw)
  To: Alistair Francis; +Cc: edgar.iglesias, peter.crosthwaite, qemu-devel

On Thu, Jun 18, 2015 at 09:16:21PM -0700, Alistair Francis wrote:
> This patch series extends the MicroBlaze properties
> that I have been working on. It applies on top of my
> original work:
> 'Add Microblaze configuration options'.
> 
> This patch series converts various MicroBlaze PVR registers
> to properties. This then allows the individual Microblaze
> machine reset functions to be removed as well as some other
> dead code.

Thanks Alistair, I've merged this into the mb queue.

Cheers,
Edgar



> 
> V4:
>  - Add some macros
> V3:
>  - Update the pvr register to be a uint8
>  - Add the 8.50.a version to the version_mask
> 
> 
> Alistair Francis (9):
>   target-microblaze: Rename the usefpu variable
>   target-microblaze: Convert use-mmu to a CPU property
>   target-microblaze: Convert dcache-writeback to a CPU property
>   target-microblaze: Convert endi to a CPU property
>   target-microblaze: Convert version_mask to a CPU property
>   target-microblaze: Convert pvr-full to a CPU property
>   ml605_mmu: Move the hardcoded values to the init function
>   s3adsp1800: Remove the hardcoded values from the reset
>   target-microblaze: Remove dead code
> 
>  hw/microblaze/petalogix_ml605_mmu.c      |   23 +++-----
>  hw/microblaze/petalogix_s3adsp1800_mmu.c |    9 +---
>  target-microblaze/cpu-qom.h              |    7 ++-
>  target-microblaze/cpu.c                  |   79 +++++++++++++++++++++++++----
>  target-microblaze/cpu.h                  |    8 ++-
>  target-microblaze/helper.c               |    6 +-
>  target-microblaze/translate.c            |    6 +-
>  7 files changed, 95 insertions(+), 43 deletions(-)
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-21 11:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19  4:16 [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Alistair Francis
2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 1/9] target-microblaze: Rename the usefpu variable Alistair Francis
2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 4/9] target-microblaze: Convert endi to a CPU property Alistair Francis
2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 6/9] target-microblaze: Convert pvr-full " Alistair Francis
2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 7/9] ml605_mmu: Move the hardcoded values to the init function Alistair Francis
2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 8/9] s3adsp1800: Remove the hardcoded values from the reset Alistair Francis
2015-06-19  4:16 ` [Qemu-devel] [PATCH v4 9/9] target-microblaze: Remove dead code Alistair Francis
2015-06-21 11:44 ` [Qemu-devel] [PATCH v4 0/9] Extend Microblaze Properties Edgar E. Iglesias

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.