* [Qemu-devel] [PATCH] Allow PIR read in privileged mode
@ 2018-04-26 16:14 Leandro
0 siblings, 0 replies; 3+ messages in thread
From: Leandro @ 2018-04-26 16:14 UTC (permalink / raw)
To: qemu-devel
According to PowerISA, the PIR register should be readable in privileged
mode also, not only in hypervisor privileged mode.
The following patch fixes this:
--- qemu-2.12.0-original/target/ppc/translate_init.c 2018-04-24
13:30:47.000000000 -0300
+++ qemu-2.12.0/target/ppc/translate_init.c 2018-04-25
16:40:04.248844415 -0300
@@ -7811,7 +7811,7 @@
/* Processor identification */
spr_register_hv(env, SPR_PIR, "PIR",
SPR_NOACCESS, SPR_NOACCESS,
- SPR_NOACCESS, SPR_NOACCESS,
+ &spr_read_generic, SPR_NOACCESS,
&spr_read_generic, NULL,
0x00000000);
spr_register_hv(env, SPR_HID0, "HID0",
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Allow PIR read in privileged mode
@ 2018-05-03 12:18 joserz
0 siblings, 0 replies; 3+ messages in thread
From: joserz @ 2018-05-03 12:18 UTC (permalink / raw)
To: qemu-devel; +Cc: leandro.lupori, qemu-ppc, david, Richard Henderson
> According to PowerISA, the PIR register should be readable in privileged mode also, not only in hypervisor privileged mode.
The code makes sense but it doesn't seem created by git format-patch. If
so, could you please follow the instructions from
https://wiki.qemu.org/Contribute/SubmitAPatch and resend it? (note you
need to cc the maintainers)
In the next version you can include my review.
Reviewed-by: Jose Ricardo Ziviani <joserz@linux.ibm.com>
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PATCH] Allow PIR read in privileged mode
@ 2018-05-07 13:48 luporl
0 siblings, 0 replies; 3+ messages in thread
From: luporl @ 2018-05-07 13:48 UTC (permalink / raw)
To: qemu-devel; +Cc: luporl, David Gibson, Alexander Graf, qemu-ppc
According to PowerISA, the PIR register should be readable in privileged
mode also, not only in hypervisor privileged mode.
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Cc: qemu-ppc@nongnu.org
Signed-off-by: Leandro Lupori <leandro.lupori@gmail.com>
Reviewed-by: Jose Ricardo Ziviani <joserz@linux.ibm.com>
---
target/ppc/translate_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c
index a72be6d121..7b56e3ffb9 100644
--- a/target/ppc/translate_init.c
+++ b/target/ppc/translate_init.c
@@ -7816,7 +7816,7 @@ static void gen_spr_book3s_ids(CPUPPCState *env)
/* Processor identification */
spr_register_hv(env, SPR_PIR, "PIR",
SPR_NOACCESS, SPR_NOACCESS,
- SPR_NOACCESS, SPR_NOACCESS,
+ &spr_read_generic, SPR_NOACCESS,
&spr_read_generic, NULL,
0x00000000);
spr_register_hv(env, SPR_HID0, "HID0",
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-07 13:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-03 12:18 [Qemu-devel] [PATCH] Allow PIR read in privileged mode joserz
-- strict thread matches above, loose matches on Subject: below --
2018-05-07 13:48 luporl
2018-04-26 16:14 Leandro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).