Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

target/ppc: slb* using REQUIRE_SV #96

Open
wants to merge 14 commits into
base: lrcoutinho-slbiag-review
Choose a base branch
from

Conversation

lrcoutinho
Copy link

No description provided.

GEN_PRIV and related CHK_* macros just assumed that variable named
"ctx" would be in scope when they are used, and that it would be a
pointer to DisasContext. Change these macros to receive the pointer
explicitly.
@lrcoutinho lrcoutinho self-assigned this Jun 7, 2022
@lrcoutinho lrcoutinho requested a review from mferst June 7, 2022 17:43
@lrcoutinho lrcoutinho force-pushed the lrcoutinho-slbiag-review2 branch from 4f14733 to cdf64e6 Compare June 7, 2022 20:43
target/ppc/mmu-hash64.c Outdated Show resolved Hide resolved
static void gen_slbfee_(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reminded me that we had a linux-user bug here, reported by Laurent Vivier in a previous discussion:
https://lists.gnu.org/archive/html/qemu-ppc/2022-03/msg00276.html
I'll prepare a patch to fix this...

mferst and others added 9 commits June 9, 2022 15:36
Equivalent to CHK_SV and CHK_HV, but can be used in decodetree methods.
Also decode RIC, PRS and R operands.
Also decode RIC, PRS and R operands.
This initial version supports the invalidation of one or all
TLB entries. Flush by PID/LPID, or based in process/partition
scope is not supported, because it would make using the
generic QEMU TLB implementation hard. In these cases, all
entries are flushed.
@lrcoutinho lrcoutinho force-pushed the lrcoutinho-slbiag-review2 branch from d127a8d to 0858f8f Compare June 9, 2022 18:59
target/ppc/translate/storage-ctrl-impl.c.inc Outdated Show resolved Hide resolved
@lrcoutinho lrcoutinho force-pushed the lrcoutinho-slbiag-review2 branch from fac8d68 to 17967de Compare June 13, 2022 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants