aboutsummaryrefslogtreecommitdiff
path: root/exec.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-27 23:29:48 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-27 23:29:48 +0000
commita513fe19ac4896a09c6c338204d76c39e652451f (patch)
tree7a8db2852cb3d88849cbe69ade4129983a3a2b5b /exec.h
parentf4beb510a41980e119f787746442ca1b87c06754 (diff)
precise exceptions
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@194 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.h')
-rw-r--r--exec.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/exec.h b/exec.h
index 29a7ab1fda..18e75e67b0 100644
--- a/exec.h
+++ b/exec.h
@@ -28,10 +28,10 @@
#define GEN_FLAG_IOPL_SHIFT 12 /* same position as eflags */
struct TranslationBlock;
-int cpu_x86_gen_code(uint8_t *gen_code_buf, int max_code_size,
- int *gen_code_size_ptr,
- uint8_t *pc_start, uint8_t *cs_base, int flags,
- int *code_size_ptr, struct TranslationBlock *tb);
+int cpu_x86_gen_code(struct TranslationBlock *tb,
+ int max_code_size, int *gen_code_size_ptr);
+int cpu_x86_search_pc(struct TranslationBlock *tb,
+ uint32_t *found_pc, unsigned long searched_pc);
void cpu_x86_tblocks_init(void);
void page_init(void);
int page_unprotect(unsigned long address);
@@ -161,6 +161,8 @@ static inline void tb_add_jump(TranslationBlock *tb, int n,
}
}
+TranslationBlock *tb_find_pc(unsigned long pc_ptr);
+
#ifndef offsetof
#define offsetof(type, field) ((size_t) &((type *)0)->field)
#endif