Arch-abstraction: introduce constants for min and max instruction sizes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2660 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c
index 059df5b..e2bd63b 100644
--- a/cachegrind/cg_main.c
+++ b/cachegrind/cg_main.c
@@ -45,7 +45,6 @@
/*--- Constants ---*/
/*------------------------------------------------------------*/
-#define MAX_x86_INSTR_SIZE 16 // According to ia32 sw dev manual vol 2
#define MIN_LINE_SIZE 16
#define FILE_LEN 256
#define FN_LEN 256
@@ -431,8 +430,8 @@
t_data_addr1 = INVALID_TEMPREG,
t_data_addr2 = INVALID_TEMPREG;
- sk_assert(instr_size >= 1 &&
- instr_size <= MAX_x86_INSTR_SIZE);
+ sk_assert(instr_size >= MIN_INSTR_SIZE &&
+ instr_size <= MAX_INSTR_SIZE);
#define IS_(X) (INVALID_TEMPREG != t_##X##_addr)
#define INV(qqt) (INVALID_TEMPREG == (qqt))