Remove unused unguarded_register property during analysis
This commit is contained in:
parent
0e8c8a1dda
commit
0263764a5c
|
@ -227,18 +227,6 @@ function gen_instruction_body_after_fixed_g(encoding, size)
|
|||
instruction_postfix.push("analysis.no_next_instruction = true;");
|
||||
}
|
||||
|
||||
if(!encoding.prefix)
|
||||
{
|
||||
if(encoding.custom && !encoding.unguarded_register || encoding.no_register)
|
||||
{
|
||||
instruction_postfix.push("analysis.unguarded_register = false;");
|
||||
}
|
||||
else
|
||||
{
|
||||
instruction_postfix.push("analysis.unguarded_register = true;");
|
||||
}
|
||||
}
|
||||
|
||||
if(encoding.prefix)
|
||||
{
|
||||
const instruction_name = "::analysis::" + make_instruction_name(encoding, size) + "_analyze";
|
||||
|
|
|
@ -18,14 +18,12 @@ pub enum AnalysisType {
|
|||
pub struct Analysis {
|
||||
pub no_next_instruction: bool,
|
||||
pub ty: AnalysisType,
|
||||
pub unguarded_register: bool,
|
||||
}
|
||||
|
||||
pub fn analyze_step(mut cpu: &mut CpuContext) -> Analysis {
|
||||
let mut analysis = Analysis {
|
||||
no_next_instruction: false,
|
||||
ty: AnalysisType::Normal,
|
||||
unguarded_register: false,
|
||||
};
|
||||
cpu.prefixes = 0;
|
||||
let opcode = cpu.read_imm8() as u32 | (cpu.osize_32() as u32) << 8;
|
||||
|
|
Loading…
Reference in a new issue