Search
lxdream.org :: lxdream/src/sh4/sh4trans.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.h
changeset 389:3e354da62264
prev359:c588dce7ebde
next408:af496b734734
author nkeynes
date Tue Sep 18 09:11:53 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Up the max instruction size to 256 (TODO: work out what this should actually
be)
view annotate diff log raw
     1 /**
     2  * $Id: sh4trans.h,v 1.2 2007-09-18 09:11:53 nkeynes Exp $
     3  * 
     4  * SH4->x86 translation module
     5  *
     6  * Copyright (c) 2005 Nathan Keynes.
     7  *
     8  * This program is free software; you can redistribute it and/or modify
     9  * it under the terms of the GNU General Public License as published by
    10  * the Free Software Foundation; either version 2 of the License, or
    11  * (at your option) any later version.
    12  *
    13  * This program is distributed in the hope that it will be useful,
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  * GNU General Public License for more details.
    17  */
    19 #include "dream.h"
    20 #include "mem.h"
    22 /** Maximum size of a translated instruction, in bytes. This includes potentially
    23  * writing the entire epilogue
    24  */
    25 #define MAX_INSTRUCTION_SIZE 256
    27 /**
    29  */
    30 uint32_t sh4_xlat_run_slice( uint32_t nanosecs );
    32 /**
    33  * Translate the specified block of code starting from the specified start
    34  * address until the first branch/jump instruction.
    35  */
    36 void *sh4_translate_basic_block( sh4addr_t start );
    38 extern uint8_t *xlat_output;
    40 /************** Output generation ***************/
    42 void sh4_translate_begin_block();
    44 uint32_t sh4_x86_translate_instruction( sh4addr_t pc );
    46 void sh4_translate_end_block( sh4addr_t pc );
.