#ifndef _rename_init_fs
#define _rename_init_fs
/******************************************************************************
** FILE: rename_init
** Initialize the register renaming code.
*/

#include "param.h"
#include "rename_regs.h"
#include "rename_data.fs"

///////////////////////////////////////////////////////////////////////////////
// Initialize register map data structures that were
// not already initialized by initial assignment.
//

fun rmap_init()
{
    rtype_to_preg_map[REG_LITERAL]	= 0;
    rtype_to_preg_map[REG_GLOBAL]	= 1;
    rtype_to_preg_map[REG_WINDOW]	= 1;
    rtype_to_preg_map[REG_FP]		= 2;
    rtype_to_preg_map[REG_CWP]		= 0;
    rtype_to_preg_map[REG_CANSAVE]	= 0;
    rtype_to_preg_map[REG_CANRESTORE]	= 0;
    rtype_to_preg_map[REG_OTHERWIN]	= 0;
    rtype_to_preg_map[REG_CLEANWIN]	= 0;
    rtype_to_preg_map[REG_CCR]		= 1;
    rtype_to_preg_map[REG_FCC]		= 1;
    rtype_to_preg_map[REG_Y]		= 1;
    rtype_to_preg_map[REG_FSR]		= 0;
}

#endif