* [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier
@ 2019-09-09 21:28 Bill Wendling
2019-09-10 16:44 ` Jim Mattson
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Bill Wendling @ 2019-09-09 21:28 UTC (permalink / raw)
To: kvm
The extended assembly documentation list only "q" as an operand modifier
for DImode registers. The "d" seems to be an AMD-ism, which appears to
be only begrudgingly supported by gcc.
Signed-off-by: Bill Wendling <morbo@google.com>
---
x86/emulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/x86/emulator.c b/x86/emulator.c
index b132b90..621caf9 100644
--- a/x86/emulator.c
+++ b/x86/emulator.c
@@ -799,7 +799,7 @@ static void test_smsw_reg(uint64_t *mem)
asm(KVM_FEP "smswl %k0\n\t" : "=a" (rax) : "0" (in_rax));
report("32-bit smsw reg", rax == (u32)cr0);
- asm(KVM_FEP "smswq %d0\n\t" : "=a" (rax) : "0" (in_rax));
+ asm(KVM_FEP "smswq %q0\n\t" : "=a" (rax) : "0" (in_rax));
report("64-bit smsw reg", rax == cr0);
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier
2019-09-09 21:28 [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier Bill Wendling
@ 2019-09-10 16:44 ` Jim Mattson
2019-09-11 19:11 ` Sean Christopherson
2019-09-25 13:44 ` Paolo Bonzini
2 siblings, 0 replies; 5+ messages in thread
From: Jim Mattson @ 2019-09-10 16:44 UTC (permalink / raw)
To: Bill Wendling; +Cc: kvm list
On Mon, Sep 9, 2019 at 2:28 PM Bill Wendling <morbo@google.com> wrote:
>
> The extended assembly documentation list only "q" as an operand modifier
> for DImode registers. The "d" seems to be an AMD-ism, which appears to
> be only begrudgingly supported by gcc.
>
> Signed-off-by: Bill Wendling <morbo@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier
2019-09-09 21:28 [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier Bill Wendling
2019-09-10 16:44 ` Jim Mattson
@ 2019-09-11 19:11 ` Sean Christopherson
[not found] ` <CAGG=3QXbCriXR+FER2ex9nN_aHENRgDvJNQ_HDCFniPP0NJNpg@mail.gmail.com>
2019-09-25 13:44 ` Paolo Bonzini
2 siblings, 1 reply; 5+ messages in thread
From: Sean Christopherson @ 2019-09-11 19:11 UTC (permalink / raw)
To: Bill Wendling; +Cc: kvm
On Mon, Sep 09, 2019 at 02:28:22PM -0700, Bill Wendling wrote:
> The extended assembly documentation list only "q" as an operand modifier
> for DImode registers. The "d" seems to be an AMD-ism, which appears to
> be only begrudgingly supported by gcc.
>
> Signed-off-by: Bill Wendling <morbo@google.com>
> ---
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier
[not found] ` <CAGG=3QXbCriXR+FER2ex9nN_aHENRgDvJNQ_HDCFniPP0NJNpg@mail.gmail.com>
@ 2019-09-24 19:35 ` Bill Wendling
0 siblings, 0 replies; 5+ messages in thread
From: Bill Wendling @ 2019-09-24 19:35 UTC (permalink / raw)
To: Sean Christopherson, Paolo Bonzini, Radim Krčmář; +Cc: kvm list
Plain text now. Sorry for spam.
On Tue, Sep 24, 2019 at 12:33 PM Bill Wendling <morbo@google.com> wrote:
>
> +Paolo Bonzini, Radim Krčmář
>
> On Wed, Sep 11, 2019 at 12:11 PM Sean Christopherson <sean.j.christopherson@intel.com> wrote:
>>
>> On Mon, Sep 09, 2019 at 02:28:22PM -0700, Bill Wendling wrote:
>> > The extended assembly documentation list only "q" as an operand modifier
>> > for DImode registers. The "d" seems to be an AMD-ism, which appears to
>> > be only begrudgingly supported by gcc.
>> >
>> > Signed-off-by: Bill Wendling <morbo@google.com>
>> > ---
>>
>> Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier
2019-09-09 21:28 [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier Bill Wendling
2019-09-10 16:44 ` Jim Mattson
2019-09-11 19:11 ` Sean Christopherson
@ 2019-09-25 13:44 ` Paolo Bonzini
2 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2019-09-25 13:44 UTC (permalink / raw)
To: Bill Wendling, kvm
On 09/09/19 23:28, Bill Wendling wrote:
> The extended assembly documentation list only "q" as an operand modifier
> for DImode registers. The "d" seems to be an AMD-ism, which appears to
> be only begrudgingly supported by gcc.
>
> Signed-off-by: Bill Wendling <morbo@google.com>
> ---
> x86/emulator.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/x86/emulator.c b/x86/emulator.c
> index b132b90..621caf9 100644
> --- a/x86/emulator.c
> +++ b/x86/emulator.c
> @@ -799,7 +799,7 @@ static void test_smsw_reg(uint64_t *mem)
> asm(KVM_FEP "smswl %k0\n\t" : "=a" (rax) : "0" (in_rax));
> report("32-bit smsw reg", rax == (u32)cr0);
>
> - asm(KVM_FEP "smswq %d0\n\t" : "=a" (rax) : "0" (in_rax));
> + asm(KVM_FEP "smswq %q0\n\t" : "=a" (rax) : "0" (in_rax));
> report("64-bit smsw reg", rax == cr0);
> }
>
Queued, thanks.
However, note that the patch mangled tabs into spaces.
Paolo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-09-25 13:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 21:28 [kvm-unit-tests PATCH] x86: emulator: use "q" operand modifier Bill Wendling
2019-09-10 16:44 ` Jim Mattson
2019-09-11 19:11 ` Sean Christopherson
[not found] ` <CAGG=3QXbCriXR+FER2ex9nN_aHENRgDvJNQ_HDCFniPP0NJNpg@mail.gmail.com>
2019-09-24 19:35 ` Bill Wendling
2019-09-25 13:44 ` Paolo Bonzini
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).