hw/intc: Pass correct hartid while updating mtimecmp
PATCH 1/1 hw/intc: Pass correct hartid while updating mtimecmp
timecmp update function should be invoked with hartid for which timecmp is being updated. The following patch passes the incorrect hartid to the update function.
--- hw/intc/riscv_aclint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
hw/intc/riscv_aclint.c +2 -1
@@ -233,7 +233,8 @@ static void riscv_aclint_mtimer_write(void *opaque, hwaddr addr,continue ; }riscv_aclint_mtimer_write_timecmp (mtimer,RISCV_CPU (cpu), - i, env->timecmp); + mtimer->hartid_base + i, + env->timecmp); }return ; }
Signature · 1 line
2.25.1
Quoted 31 lines · Atish Patra
timecmp update function should be invoked with hartid for which timecmp is being updated. The following patch passes the incorrect hartid to the update function.
Fixes e2f01f3c2e13 ("hw/intc: Make RISC-V ACLINT mtime MMIO registerwritable")
Signed-off-by Atish Patra <[email protected]>--- hw/intc/riscv_aclint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/intc/riscv_aclint.c +2
-1@@ -233,7 +233,8 @@ static void riscv_aclint_mtimer_write(void *opaque,hwaddr addr, continue; }riscv_aclint_mtimer_write_timecmp (mtimer,RISCV_CPU (cpu), - i, env->timecmp); + mtimer->hartid_base + i, + env->timecmp); }return ;}--
2.25.1
Quoted 8 lines · Atish Patra
timecmp update function should be invoked with hartid for which timecmp is being updated. The following patch passes the incorrect hartid to the update function.
Fixes e2f01f3c2e13 ("hw/intc: Make RISC-V ACLINT mtime MMIO register writable")Signed-off-by Atish Patra <[email protected]>
Looks good to me.
Regards,
Anup
Quoted 22 lines
--- hw/intc/riscv_aclint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/intc/riscv_aclint.c +2
-2@@ -233,7 +233,8 @@ static void riscv_aclint_mtimer_write(void *opaque, hwaddr addr,continue ; }riscv_aclint_mtimer_write_timecmp (mtimer,RISCV_CPU (cpu), - i, env->timecmp); + mtimer->hartid_base + i, + env->timecmp); }return ; } --2.25.1
Quoted 8 lines · Atish Patra
timecmp update function should be invoked with hartid for which timecmp is being updated. The following patch passes the incorrect hartid to the update function.
Fixes e2f01f3c2e13 ("hw/intc: Make RISC-V ACLINT mtime MMIO register writable")Signed-off-by Atish Patra <[email protected]>
Alistair
Quoted 22 lines
--- hw/intc/riscv_aclint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/intc/riscv_aclint.c +2
-2@@ -233,7 +233,8 @@ static void riscv_aclint_mtimer_write(void *opaque, hwaddr addr,continue ; }riscv_aclint_mtimer_write_timecmp (mtimer,RISCV_CPU (cpu), - i, env->timecmp); + mtimer->hartid_base + i, + env->timecmp); }return ; } --2.25.1
Alistair Francis
AppliedQuoted 8 lines · Atish Patra
timecmp update function should be invoked with hartid for which timecmp is being updated. The following patch passes the incorrect hartid to the update function.
Fixes e2f01f3c2e13 ("hw/intc: Make RISC-V ACLINT mtime MMIO register writable")Signed-off-by Atish Patra <[email protected]>
Thanks!
Applied to riscv-to-apply.next
Alistair
Quoted 22 lines
--- hw/intc/riscv_aclint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/intc/riscv_aclint.c +2
-2@@ -233,7 +233,8 @@ static void riscv_aclint_mtimer_write(void *opaque, hwaddr addr,continue ; }riscv_aclint_mtimer_write_timecmp (mtimer,RISCV_CPU (cpu), - i, env->timecmp); + mtimer->hartid_base + i, + env->timecmp); }return ; } --2.25.1