From 02d4cfe2c8aee359b9009d67cc71a713e7e8c26d Mon Sep 17 00:00:00 2001 From: Peter Matula Date: Thu, 4 May 2023 10:15:53 +0200 Subject: [PATCH] capstone2llvmir/x86: generate BND registers --- src/capstone2llvmir/x86/x86.cpp | 6 ++++++ src/capstone2llvmir/x86/x86_init.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/capstone2llvmir/x86/x86.cpp b/src/capstone2llvmir/x86/x86.cpp index 6a5e87f8..bd8eda5a 100644 --- a/src/capstone2llvmir/x86/x86.cpp +++ b/src/capstone2llvmir/x86/x86.cpp @@ -526,6 +526,12 @@ void Capstone2LlvmIrTranslatorX86_impl::generateRegistersCommon() createRegister(X86_REG_ZMM30, _regLt); createRegister(X86_REG_ZMM31, _regLt); + // BND + createRegister(X86_REG_BND0, _regLt); + createRegister(X86_REG_BND1, _regLt); + createRegister(X86_REG_BND2, _regLt); + createRegister(X86_REG_BND3, _regLt); + // Debug registers. // createRegister(X86_REG_DR0, _regLt); diff --git a/src/capstone2llvmir/x86/x86_init.cpp b/src/capstone2llvmir/x86/x86_init.cpp index 33d4f9e2..ba85942a 100644 --- a/src/capstone2llvmir/x86/x86_init.cpp +++ b/src/capstone2llvmir/x86/x86_init.cpp @@ -370,6 +370,12 @@ void Capstone2LlvmIrTranslatorX86_impl::initializeRegTypeMap() {X86_REG_ZMM30, i512}, {X86_REG_ZMM31, i512}, + // BND + {X86_REG_BND0, i128}, + {X86_REG_BND1, i128}, + {X86_REG_BND2, i128}, + {X86_REG_BND3, i128}, + // x86_reg_rflags // {X86_REG_CF, i1},