Re: [PATCH 8/9] MIPS: KVM: Decode RDHWR more strictly

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

 



On 07/05/2016 03:39 PM, Paolo Bonzini wrote:

     if (inst.r_format.opcode == spec3_op &&
-        inst.r_format.func == rdhwr_op) {
+        inst.r_format.func == rdhwr_op &&
+        inst.r_format.rs == 0 &&
+        (inst.r_format.re >> 3) == 0) {

   Inner parens not necessary here.

They are nicer though.

   I wouldn't say so...

Paolo

MBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux