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





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux