ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/compiler/compemu.h
(Generate patch)

Comparing BasiliskII/src/uae_cpu/compiler/compemu.h (file contents):
Revision 1.1 by gbeauche, 2002-09-17T16:04:06Z vs.
Revision 1.7 by gbeauche, 2003-03-21T19:12:44Z

# Line 1 | Line 1
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  
# Line 32 | Line 57 | union cacheline {
57          blockinfo_t * bi;
58   };
59  
60 + /* Use new spill/reload strategy when calling external functions */
61 + #define USE_OPTIMIZED_CALLS 0
62 + #if USE_OPTIMIZED_CALLS
63 + #error implementation in progress
64 + #endif
65 +
66   /* (gb) When on, this option can save save up to 30% compilation time
67   *  when many lazy flushes occur (e.g. apps in MacOS 8.x).
68   */
69   #define USE_SEPARATE_BIA 1
70  
71 + /* Use chain of checksum_info_t to compute the block checksum */
72 + #define USE_CHECKSUM_INFO 1
73 +
74 + /* Use code inlining, aka follow-up of constant jumps */
75 + #define USE_INLINING 1
76 +
77 + /* Inlining requires the chained checksuming information */
78 + #if USE_INLINING
79 + #undef  USE_CHECKSUM_INFO
80 + #define USE_CHECKSUM_INFO 1
81 + #endif
82 +
83   #define USE_F_ALIAS 1
84   #define USE_OFFSET 1
85   #define COMP_DEBUG 1
# Line 298 | Line 341 | DECLARE_MIDFUNC(setcc(W1 d, IMM cc));
341   DECLARE_MIDFUNC(setcc_m(IMM d, IMM cc));
342   DECLARE_MIDFUNC(cmov_l_rr(RW4 d, R4 s, IMM cc));
343   DECLARE_MIDFUNC(cmov_l_rm(RW4 d, IMM s, IMM cc));
344 < DECLARE_MIDFUNC(bsf_l_rr(W4 d, R4 s));
344 > /* Set native Z flag only if register is zero */
345 > DECLARE_MIDFUNC(setzflg_l(RW4 r));
346   DECLARE_MIDFUNC(pop_m(IMM d));
347   DECLARE_MIDFUNC(push_m(IMM d));
348   DECLARE_MIDFUNC(pop_l(W4 d));
# Line 485 | Line 529 | typedef struct dep_t {
529    struct dep_t*       next;
530   } dependency;
531  
532 + typedef struct checksum_info_t {
533 +  uae_u8 *start_p;
534 +  uae_u32 length;
535 +  struct checksum_info_t *next;
536 + } checksum_info;
537 +
538   typedef struct blockinfo_t {
539      uae_s32 count;
540      cpuop_func* direct_handler_to_use;
# Line 497 | Line 547 | typedef struct blockinfo_t {
547      cpuop_func* direct_pen;
548      cpuop_func* direct_pcc;
549  
500    uae_u8* nexthandler;
550      uae_u8* pc_p;
551      
552      uae_u32 c1;    
553      uae_u32 c2;
554 + #if USE_CHECKSUM_INFO
555 +    checksum_info *csi;
556 + #else
557      uae_u32 len;
558 +    uae_u32 min_pcp;
559 + #endif
560  
561      struct blockinfo_t* next_same_cl;
562      struct blockinfo_t** prev_same_cl_p;  
563      struct blockinfo_t* next;
564      struct blockinfo_t** prev_p;
565  
512    uae_u32 min_pcp;
566      uae_u8 optlevel;  
567      uae_u8 needed_flags;  
568      uae_u8 status;  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines