arch-power: Implement mcrxr
Implement the mcrxr instruction (Move to Condition Register from XER X-form) as defined on p.132 of the green-cloth book: The contents of XER<0:3> are copied into the Condition Register field designated by BF. XER<0:3> are set to zero. Change-Id: I82ae3d98e1eaf9182e90c0c86afe0f13d4a052e4 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37295 Reviewed-by: Gabe Black <gabe.black@gmail.com> Reviewed-by: Boris Shingarov <shingarov@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Boris Shingarov
parent
b12422c79b
commit
eb778327b3
@@ -278,6 +278,10 @@ decode OPCODE default Unknown::unknown() {
|
||||
0x100: mtlr({{ LR = Rs; }});
|
||||
0x120: mtctr({{ CTR = Rs; }});
|
||||
}
|
||||
512: mcrxr({{
|
||||
CR = insertCRField(CR, BF, XER<31:28>);
|
||||
XER = XER<27:0>;
|
||||
}});
|
||||
}
|
||||
|
||||
// All loads with an index register. The non-update versions
|
||||
|
||||
Reference in New Issue
Block a user