mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Eliminated the classification of control registers into %ecr_
and %rcr_, leaving just %cr_ which is what people expect. Updated the disassembler to support this unified register set. Added a testcase to verify that the registers continue to be decoded correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1034,14 +1034,10 @@ static int readModRM(struct InternalInstruction* insn) {
|
||||
if (index > 7) \
|
||||
*valid = 0; \
|
||||
return prefix##_DR0 + index; \
|
||||
case TYPE_CR32: \
|
||||
if (index > 7) \
|
||||
*valid = 0; \
|
||||
return prefix##_ECR0 + index; \
|
||||
case TYPE_CR64: \
|
||||
case TYPE_CONTROLREG: \
|
||||
if (index > 8) \
|
||||
*valid = 0; \
|
||||
return prefix##_RCR0 + index; \
|
||||
return prefix##_CR0 + index; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user