qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 1/2] s390x/tcg: wire up pci instructions


From: Cornelia Huck
Subject: Re: [Qemu-devel] [PATCH v2 1/2] s390x/tcg: wire up pci instructions
Date: Thu, 1 Feb 2018 15:47:05 +0100

On Wed, 31 Jan 2018 19:17:41 +0100
Cornelia Huck <address@hidden> wrote:

> +void HELPER(sic)(CPUS390XState *env, uint64_t r1, uint64_t r3)
> +{
> +    int r;
> +
> +    qemu_mutex_lock_iothread();
> +    r = css_do_sic(env, r1 & 0xffff, (r3 >> 27) & 0x7);

Here, the arguments have to be swapped around...

> +    qemu_mutex_unlock_iothread();
> +    if (r) {
> +        s390_program_interrupt(env, PGM_OPERATION, 4, GETPC());

...and here we have to pass -r instead of PGM_OPERATION. (Thanks to
David for spotting those!)

> +    }
> +}

With that fixed (and rebased upon current s390-next, which contains
David's latest changes), I can also turn on ais for tcg (which means
pre-4.15 kernels can see pci devices as well.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]