Remove unused unguarded_register property during analysis

This commit is contained in:
Fabian 2020-12-31 19:14:28 -06:00
parent 0e8c8a1dda
commit 0263764a5c
2 changed files with 0 additions and 14 deletions

View file

@ -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";

View file

@ -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;