Revert "Add uc_ctl_get/set_tcg_buffer_size"
This reverts commit 3145e3c426 because not
properly co-authoer-ed.
This commit is contained in:
@@ -400,7 +400,6 @@ struct uc_struct {
|
||||
|
||||
FlatView *empty_view; // Static function variable moved from flatviews_init
|
||||
|
||||
uint64_t tcg_buffer_size; // The buffer size we are going to use
|
||||
#ifdef WIN32
|
||||
PVOID seh_handle;
|
||||
void* seh_closure;
|
||||
|
||||
@@ -571,12 +571,8 @@ typedef enum uc_control_type {
|
||||
// Change the tlb implementation
|
||||
// see uc_tlb_type for current implemented types
|
||||
// Write: @args = (int)
|
||||
UC_CTL_TLB_TYPE,
|
||||
// Change the tcg translation buffer size, note that
|
||||
// unicorn may adjust this value.
|
||||
// Write: @args = (uint64_t)
|
||||
// Read: @args = (uint64_t*)
|
||||
UC_CTL_TCG_BUFFER_SIZE,
|
||||
UC_CTL_TLB_TYPE
|
||||
|
||||
} uc_control_type;
|
||||
|
||||
/*
|
||||
@@ -653,11 +649,6 @@ See sample_ctl.c for a detailed example.
|
||||
#define uc_ctl_flush_tb(uc) uc_ctl(uc, UC_CTL_WRITE(UC_CTL_TB_FLUSH, 0))
|
||||
#define uc_ctl_flush_tlb(uc) uc_ctl(uc, UC_CTL_WRITE(UC_CTL_TLB_FLUSH, 0))
|
||||
#define uc_ctl_tlb_mode(uc, mode) uc_ctl(uc, UC_CTL_WRITE(UC_CTL_TLB_TYPE, 1), (mode))
|
||||
#define uc_ctl_get_tcg_buffer_size(uc, size) \
|
||||
uc_ctl(uc, UC_CTL_READ(UC_CTL_TCG_BUFFER_SIZE, 1), (size))
|
||||
#define uc_ctl_set_tcg_buffer_size(uc, size) \
|
||||
uc_ctl(uc, UC_CTL_WRITE(UC_CTL_TCG_BUFFER_SIZE, 1), (size))
|
||||
|
||||
// Opaque storage for CPU context, used with uc_context_*()
|
||||
struct uc_context;
|
||||
typedef struct uc_context uc_context;
|
||||
|
||||
Reference in New Issue
Block a user