1 |
+ |
/* |
2 |
+ |
* compiler/compemu.h - Public interface and definitions |
3 |
+ |
* |
4 |
+ |
* Original 68040 JIT compiler for UAE, copyright 2000-2002 Bernd Meyer |
5 |
+ |
* |
6 |
+ |
* Adaptation for Basilisk II and improvements, copyright 2000-2002 |
7 |
+ |
* Gwenole Beauchesne |
8 |
+ |
* |
9 |
+ |
* Basilisk II (C) 1997-2002 Christian Bauer |
10 |
+ |
* |
11 |
+ |
* This program is free software; you can redistribute it and/or modify |
12 |
+ |
* it under the terms of the GNU General Public License as published by |
13 |
+ |
* the Free Software Foundation; either version 2 of the License, or |
14 |
+ |
* (at your option) any later version. |
15 |
+ |
* |
16 |
+ |
* This program is distributed in the hope that it will be useful, |
17 |
+ |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 |
+ |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 |
+ |
* GNU General Public License for more details. |
20 |
+ |
* |
21 |
+ |
* You should have received a copy of the GNU General Public License |
22 |
+ |
* along with this program; if not, write to the Free Software |
23 |
+ |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 |
+ |
*/ |
25 |
+ |
|
26 |
|
#ifndef COMPEMU_H |
27 |
|
#define COMPEMU_H |
28 |
|
|
63 |
|
#define USE_SEPARATE_BIA 1 |
64 |
|
|
65 |
|
/* Use chain of checksum_info_t to compute the block checksum */ |
66 |
< |
#define USE_CHECKSUM_INFO 0 |
66 |
> |
#define USE_CHECKSUM_INFO 1 |
67 |
> |
|
68 |
> |
/* Use code inlining, aka follow-up of constant jumps */ |
69 |
> |
#define USE_INLINING 1 |
70 |
> |
|
71 |
> |
/* Inlining requires the chained checksuming information */ |
72 |
> |
#if USE_INLINING |
73 |
> |
#undef USE_CHECKSUM_INFO |
74 |
> |
#define USE_CHECKSUM_INFO 1 |
75 |
> |
#endif |
76 |
|
|
77 |
|
#define USE_F_ALIAS 1 |
78 |
|
#define USE_OFFSET 1 |
335 |
|
DECLARE_MIDFUNC(setcc_m(IMM d, IMM cc)); |
336 |
|
DECLARE_MIDFUNC(cmov_l_rr(RW4 d, R4 s, IMM cc)); |
337 |
|
DECLARE_MIDFUNC(cmov_l_rm(RW4 d, IMM s, IMM cc)); |
338 |
< |
DECLARE_MIDFUNC(bsf_l_rr(W4 d, R4 s)); |
338 |
> |
/* Set native Z flag only if register is zero */ |
339 |
> |
DECLARE_MIDFUNC(setzflg_l(RW4 r)); |
340 |
|
DECLARE_MIDFUNC(pop_m(IMM d)); |
341 |
|
DECLARE_MIDFUNC(push_m(IMM d)); |
342 |
|
DECLARE_MIDFUNC(pop_l(W4 d)); |
526 |
|
typedef struct checksum_info_t { |
527 |
|
uae_u8 *start_p; |
528 |
|
uae_u32 length; |
494 |
– |
uae_u32 c1; |
495 |
– |
uae_u32 c2; |
529 |
|
struct checksum_info_t *next; |
530 |
|
} checksum_info; |
531 |
|
|
543 |
|
|
544 |
|
uae_u8* pc_p; |
545 |
|
|
546 |
+ |
uae_u32 c1; |
547 |
+ |
uae_u32 c2; |
548 |
|
#if USE_CHECKSUM_INFO |
549 |
|
checksum_info *csi; |
515 |
– |
# define CSI_TYPE checksum_info |
516 |
– |
# define CSI_START_P(csi) (csi)->start_p |
517 |
– |
# define CSI_LENGTH(csi) (csi)->length |
550 |
|
#else |
519 |
– |
uae_u32 c1; |
520 |
– |
uae_u32 c2; |
551 |
|
uae_u32 len; |
552 |
|
uae_u32 min_pcp; |
523 |
– |
# define CSI_TYPE blockinfo |
524 |
– |
# define CSI_START_P(csi) (csi)->min_pcp |
525 |
– |
# define CSI_LENGTH(csi) (csi)->len |
553 |
|
#endif |
554 |
|
|
555 |
|
struct blockinfo_t* next_same_cl; |