mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Merge pull request #1027 from TomHarte/GCCWarnings
Resolve GCC compilation warnings.
This commit is contained in:
commit
872b941b20
@ -1144,8 +1144,6 @@ Preinstruction Predecoder<model>::decode6(uint16_t instruction) {
|
||||
|
||||
template <Model model>
|
||||
Preinstruction Predecoder<model>::decode7(uint16_t instruction) {
|
||||
using Op = Operation;
|
||||
|
||||
// 4-134 (p238)
|
||||
if(!(instruction & 0x100)) {
|
||||
Decode(MOVEQ);
|
||||
|
@ -849,7 +849,7 @@ std::pair<int, typename Decoder<model>::InstructionT> Decoder<model>::decode(con
|
||||
default: assert(false);
|
||||
}
|
||||
|
||||
if(expects_sib && (source_ == Source::Indirect | destination_ == Source::Indirect)) {
|
||||
if(expects_sib && (source_ == Source::Indirect || destination_ == Source::Indirect)) {
|
||||
phase_ = Phase::ScaleIndexBase;
|
||||
} else {
|
||||
phase_ = (displacement_size_ != DataSize::None || operand_size_ != DataSize::None) ? Phase::DisplacementOrOperand : Phase::ReadyToPost;
|
||||
|
Loading…
Reference in New Issue
Block a user