[PATH] AMD MWAITX enablement
Pawar, Amit
Amit.Pawar@amd.com
Tue Jun 30 06:58:00 GMT 2015
PFA patch created using "git format-patch -1". Please commit it.
-----Original Message-----
From: Andreas Schwab [mailto:schwab@linux-m68k.org]
Sent: Friday, June 26, 2015 11:33 PM
To: Pawar, Amit
Cc: H.J. Lu; binutils@sourceware.org; Jan Beulich
Subject: Re: [PATH] AMD MWAITX enablement
"Pawar, Amit" <Amit.Pawar@amd.com> writes:
> @@ -3347,6 +3349,34 @@ process_immext (void)
> i.operands = 0;
> }
>
> + if (i.tm.cpu_flags.bitfield.cpumwaitx && i.operands > 0)
> + {
> + /* MONITORX/MWAITX instructions have fixed operands with an opcode
> + suffix which is coded in the same place as an 8-bit immediate field
> + would be.
> + Here we check those operands and remove them afterwards. */
> + unsigned int x;
> +
> + if (i.operands != 3)
> + abort();
> +
> + for (x = 0; x < 2; x++)
> + if (register_number (i.op[x].regs) != x)
> + goto bad_register_operand;
> +
> + /* Check for third operand for mwaitx/monitorx insn*/
> + if (register_number (i.op[x].regs) !=
> + (x + (i.tm.extension_opcode == 0xfb)))
Line break before operator, not after.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MWAITX-CPU.patch
Type: application/octet-stream
Size: 28265 bytes
Desc: 0001-MWAITX-CPU.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20150630/8e5a81cd/attachment.obj>
More information about the Binutils
mailing list