[PPC] Support basic form of sc.

This commit is contained in:
gibbed
2020-02-11 05:56:36 -06:00
committed by Rick Gibbed
parent ce1d632f4e
commit e2346ee539
6 changed files with 27 additions and 4 deletions

View File

@@ -42,7 +42,20 @@ static inline uint64_t XEMASK(uint32_t mstart, uint32_t mstop) {
}
struct PPCDecodeData {
struct FormatSC {};
struct FormatSC {
uint32_t LEV() const { return bits_.LEV; }
private:
uint32_t address_;
union {
uint32_t value_;
struct {
uint32_t : 5;
uint32_t LEV : 7;
uint32_t : 20;
} bits_;
};
};
struct FormatD {
uint32_t RT() const { return bits_.RT; }
uint32_t RD() const { return RT(); }