[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 15/16] s3adsp1800: Remove the hardcoded values fr
From: |
Edgar E. Iglesias |
Subject: |
[Qemu-devel] [PATCH v1 15/16] s3adsp1800: Remove the hardcoded values from the reset |
Date: |
Sun, 21 Jun 2015 21:56:26 +1000 |
From: Alistair Francis <address@hidden>
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 <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
Reviewed-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Edgar E. Iglesias <address@hidden>
---
hw/microblaze/petalogix_s3adsp1800_mmu.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/hw/microblaze/petalogix_s3adsp1800_mmu.c
b/hw/microblaze/petalogix_s3adsp1800_mmu.c
index 4dbbd1e..0c2140c 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)
{
@@ -128,7 +121,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.9.1
- [Qemu-devel] [PATCH v1 02/16] target-microblaze: Fix up indentation, (continued)
- [Qemu-devel] [PATCH v1 02/16] target-microblaze: Fix up indentation, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 03/16] target-microblaze: Preserve the pvr registers during reset, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 05/16] target-microblaze: Tidy up the base-vectors property, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 06/16] target-microblaze: Convert use-fpu to a CPU property, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 07/16] target-microblaze: Disable stack protection by default, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 08/16] target-microblaze: Rename the usefpu variable, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 11/16] target-microblaze: Convert endi to a CPU property, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 12/16] target-microblaze: Convert version_mask to a CPU property, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 13/16] target-microblaze: Convert pvr-full to a CPU property, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 14/16] ml605_mmu: Move the hardcoded values to the init function, Edgar E. Iglesias, 2015/06/21
- [Qemu-devel] [PATCH v1 15/16] s3adsp1800: Remove the hardcoded values from the reset,
Edgar E. Iglesias <=
- [Qemu-devel] [PATCH v1 16/16] target-microblaze: Remove dead code, Edgar E. Iglesias, 2015/06/21