musix 0.3.5

Music player library for esoteric audio formats (music from C64,Amiga etc)
Documentation
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *   Mupen64plus - regcache.h                                              *
 *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
 *   Copyright (C) 2002 Hacktarux                                          *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef M64P_R4300_REGCACHE_H
#define M64P_R4300_REGCACHE_H

#include "r4300/recomp.h"

void init_cache(usf_state_t *, precomp_instr* start);
void free_all_registers(usf_state_t *);
void free_register(usf_state_t *, int reg);
int allocate_register(usf_state_t *, unsigned int *addr);
int allocate_64_register1(usf_state_t *, unsigned int *addr);
int allocate_64_register2(usf_state_t *, unsigned int *addr);
int is64(usf_state_t *, unsigned int *addr);
void build_wrappers(usf_state_t *, precomp_instr*, int, int, precomp_block*);
int lru_register(usf_state_t *);
int allocate_register_w(usf_state_t *, unsigned int *addr);
int allocate_64_register1_w(usf_state_t *, unsigned int *addr);
int allocate_64_register2_w(usf_state_t *, unsigned int *addr);
void set_register_state(usf_state_t *, int reg, unsigned int *addr, int dirty);
void set_64_register_state(usf_state_t *, int reg1, int reg2, unsigned int *addr, int dirty);
void allocate_register_manually(usf_state_t *, int reg, unsigned int *addr);
void allocate_register_manually_w(usf_state_t *, int reg, unsigned int *addr, int load);
void force_32(usf_state_t *, int reg);
int lru_register_exc1(usf_state_t *, int exc1);
void simplify_access(usf_state_t *);

#endif /* M64P_R4300_REGCACHE_H */