[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 8/9] s3adsp1800: Remove the hardcoded values
From: |
Peter Crosthwaite |
Subject: |
Re: [Qemu-devel] [PATCH v2 8/9] s3adsp1800: Remove the hardcoded values from the reset |
Date: |
Sun, 14 Jun 2015 19:44:34 -0700 |
On Thu, Jun 4, 2015 at 11:43 PM, Alistair Francis
<address@hidden> wrote:
> 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>
> ---
> 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
>
>
- Re: [Qemu-devel] [PATCH v2 1/9] target-microblaze: Rename the usefpu variable, (continued)
- [Qemu-devel] [PATCH v2 4/9] target-microblaze: Convert endi to a CPU property, Alistair Francis, 2015/06/05
- [Qemu-devel] [PATCH v2 5/9] target-microblaze: Convert version_mask to a CPU property, Alistair Francis, 2015/06/05
- [Qemu-devel] [PATCH v2 6/9] target-microblaze: Convert pvr-full to a CPU property, Alistair Francis, 2015/06/05
- [Qemu-devel] [PATCH v2 7/9] ml605_mmu: Move the hardcoded values to the init function, Alistair Francis, 2015/06/05
- [Qemu-devel] [PATCH v2 8/9] s3adsp1800: Remove the hardcoded values from the reset, Alistair Francis, 2015/06/05
- Re: [Qemu-devel] [PATCH v2 8/9] s3adsp1800: Remove the hardcoded values from the reset,
Peter Crosthwaite <=
- [Qemu-devel] [PATCH v2 9/9] target-microblaze: Remove dead code, Alistair Francis, 2015/06/05
- [Qemu-devel] [PATCH v2 3/9] target-microblaze: Convert dcache-writeback to a CPU property, Peter Crosthwaite, 2015/06/08
- [Qemu-devel] [PATCH v2 2/9] target-microblaze: Convert use-mmu to a CPU property, Peter Crosthwaite, 2015/06/08