Searched refs:hartid_base (Results 1 – 10 of 10) sorted by relevance
/openbmc/qemu/hw/intc/ |
H A D | riscv_aclint.c | 70 hartid = hartid - mtimer->hartid_base; in riscv_aclint_mtimer_write_timecmp() 131 size_t hartid = mtimer->hartid_base + in riscv_aclint_mtimer_read() 174 size_t hartid = mtimer->hartid_base + in riscv_aclint_mtimer_write() 267 hartid_base, 0), 353 uint32_t hartid_base, uint32_t num_harts, in riscv_aclint_mtimer_create() argument 366 qdev_prop_set_uint32(dev, "hartid-base", hartid_base); in riscv_aclint_mtimer_create() 376 CPUState *cpu = cpu_by_arch_id(hartid_base + i); in riscv_aclint_mtimer_create() 410 size_t hartid = swi->hartid_base + (addr >> 2); in riscv_aclint_swi_read() 433 size_t hartid = swi->hartid_base + (addr >> 2); in riscv_aclint_swi_write() 542 qdev_prop_set_uint32(dev, "hartid-base", hartid_base); in riscv_aclint_swi_create() [all …]
|
H A D | sifive_plic.c | 127 qemu_set_irq(plic->m_external_irqs[hartid - plic->hartid_base], level); in sifive_plic_update() 130 qemu_set_irq(plic->s_external_irqs[hartid - plic->hartid_base], level); in sifive_plic_update() 329 addrid = 0, hartid = plic->hartid_base; in parse_hart_config() 397 RISCVCPU *cpu = RISCV_CPU(qemu_get_cpu(s->hartid_base + i)); in sifive_plic_realize() 430 DEFINE_PROP_UINT32("hartid-base", SiFivePLICState, hartid_base, 0), 474 uint32_t hartid_base, uint32_t num_sources, in type_init() 487 qdev_prop_set_uint32(dev, "hartid-base", hartid_base); in type_init() 507 qdev_connect_gpio_out(dev, cpu_num - hartid_base + num_harts, in type_init() 511 qdev_connect_gpio_out(dev, cpu_num - hartid_base, in type_init()
|
H A D | riscv_aplic.c | 894 RISCVCPU *cpu = RISCV_CPU(cpu_by_arch_id(aplic->hartid_base + i)); in riscv_aplic_realize() 909 DEFINE_PROP_UINT32("hartid-base", RISCVAPLICState, hartid_base, 0), 998 uint32_t hartid_base, uint32_t num_harts, uint32_t num_sources, in riscv_aplic_create() argument 1011 qdev_prop_set_uint32(dev, "hartid-base", hartid_base); in riscv_aplic_create() 1030 CPUState *cpu = cpu_by_arch_id(hartid_base + i); in riscv_aplic_create()
|
/openbmc/qemu/include/hw/intc/ |
H A D | riscv_aclint.h | 40 uint32_t hartid_base; member 50 uint32_t hartid_base, uint32_t num_harts, 65 uint32_t hartid_base; member 71 DeviceState *riscv_aclint_swi_create(hwaddr addr, uint32_t hartid_base,
|
H A D | riscv_aplic.h | 65 uint32_t hartid_base; member 76 uint32_t hartid_base, uint32_t num_harts, uint32_t num_sources,
|
H A D | sifive_plic.h | 64 uint32_t hartid_base; member 81 uint32_t hartid_base, uint32_t num_sources,
|
/openbmc/qemu/hw/riscv/ |
H A D | riscv_hart.c | 32 DEFINE_PROP_UINT32("hartid-base", RISCVHartArrayState, hartid_base, 0), 50 s->harts[idx].env.mhartid = s->hartid_base + idx; in riscv_hart_realize()
|
H A D | spike.c | 109 s->soc[socket].hartid_base + cpu); in create_fdt() 120 s->soc[socket].hartid_base + cpu); in create_fdt()
|
H A D | virt.c | 239 s->soc[socket].hartid_base + cpu); in create_fdt_socket_cpus() 269 s->soc[socket].hartid_base + cpu); in create_fdt_socket_cpus()
|
/openbmc/qemu/include/hw/riscv/ |
H A D | riscv_hart.h | 38 uint32_t hartid_base; member
|