[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 29/38] hw/hppa: Implement DINO system board
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [PATCH 29/38] hw/hppa: Implement DINO system board |
Date: |
Fri, 29 Dec 2017 10:45:14 +0100 |
On Thu, 28 Dec 2017 22:31:36 -0800
Richard Henderson <address@hidden> wrote:
> Now that we have the prerequisites in target/hppa/,
> implement the hardware for a PA7100LC.
>
> This also enables build for hppa-softmmu.
>
> Signed-off-by: Helge Deller <address@hidden>
> [rth: Since it is all new code, squashed all branch development
> withing hw/hppa/ to a single patch.]
> Signed-off-by: Richard Henderson <address@hidden>
> ---
[...]
> diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
> index 4625e591ea..d491c2aeed 100644
> --- a/hw/hppa/machine.c
> +++ b/hw/hppa/machine.c
> @@ -1,5 +1,5 @@
> /*
> - * QEMU HPPA hardware system emulator.
> + * QEMU HP-PARISC (HPPA) hardware system emulator.
> * Copyright 2017 Helge Deller <address@hidden>
> *
> */
> @@ -17,12 +17,222 @@
> #include "hw/ide.h"
> #include "hw/timer/i8254.h"
> #include "hw/char/serial.h"
> +#include "hw/hppa/hppa_sys.h"
> #include "qemu/cutils.h"
> #include "qapi/error.h"
>
> +#define MAX_IDE_BUS 2
> +
> +static ISABus *hppa_isa_bus(void)
> +{
> + ISABus *isa_bus;
> + qemu_irq *isa_irqs;
> + MemoryRegion *isa_region;
> +
> + isa_region = g_new(MemoryRegion, 1);
> + memory_region_init_io(isa_region, NULL, &hppa_pci_ignore_ops,
> + NULL, "isa-io", 0x800);
> + memory_region_add_subregion(get_system_memory(), IDE_HPA,
> + isa_region);
> +
> + isa_bus = isa_bus_new(NULL, get_system_memory(), isa_region,
> + &error_abort);
> + isa_irqs = i8259_init(isa_bus,
> + /* qemu_allocate_irq(dino_set_isa_irq, s, 0)); */
> + NULL);
> + isa_bus_irqs(isa_bus, isa_irqs);
> +
> + return isa_bus;
> +}
> +
> +static uint64_t cpu_hppa_to_phys(void *opaque, uint64_t addr)
> +{
> + addr &= (0x10000000 - 1);
> + return addr;
> +}
>
> static void machine_hppa_init(MachineState *machine)
> {
> + ram_addr_t ram_size = machine->ram_size;
> + const char *cpu_model
> + = machine->cpu_model ? machine->cpu_model : "hppa1.1";
[...]
> +
> + /* Create 1 cpu (for now). */
> + cpu0 = HPPA_CPU(cpu_generic_init(TYPE_HPPA_CPU, cpu_model));
[...]
Please don't use cpu_model in board code, use cpu_type instead.
See 5daab28e as example
- [Qemu-devel] [PATCH 22/38] target/hppa: Implement I*TLBA and I*TLBP insns, (continued)
- [Qemu-devel] [PATCH 22/38] target/hppa: Implement I*TLBA and I*TLBP insns, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 20/38] target/hppa: Implement the interval timer, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 21/38] target/hppa: Log unimplemented instructions, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 25/38] target/hppa: Implement LPA, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 28/38] target/hppa: Implement a halt instruction, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 27/38] target/hppa: Implement SYNCDMA insn, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 26/38] target/hppa: Implement LCI, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 31/38] target/hppa: Add system registers to gdbstub, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 32/38] target/hppa: Add migration for the cpu, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 29/38] hw/hppa: Implement DINO system board, Richard Henderson, 2017/12/29
- Re: [Qemu-devel] [PATCH 29/38] hw/hppa: Implement DINO system board,
Igor Mammedov <=
- [Qemu-devel] [PATCH 30/38] target/hppa: Optimize for flat addressing space, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 33/38] target/hppa: Implement B,GATE insn, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 35/38] qom: Add MMU_DEBUG_LOAD, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 34/38] target/hppa: Only use EXCP_DTLB_MISS, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 36/38] target/hppa: Use MMU_DEBUG_LOAD when reloading for CR[IIR], Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 37/38] target/hppa: Increase number of temp regs, Richard Henderson, 2017/12/29
- [Qemu-devel] [PATCH 38/38] target/hppa: Fix comment, Richard Henderson, 2017/12/29