18289b279Sblueswir1 /* 28289b279Sblueswir1 * Tiny Code Generator for QEMU 38289b279Sblueswir1 * 48289b279Sblueswir1 * Copyright (c) 2008 Fabrice Bellard 58289b279Sblueswir1 * 68289b279Sblueswir1 * Permission is hereby granted, free of charge, to any person obtaining a copy 78289b279Sblueswir1 * of this software and associated documentation files (the "Software"), to deal 88289b279Sblueswir1 * in the Software without restriction, including without limitation the rights 98289b279Sblueswir1 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 108289b279Sblueswir1 * copies of the Software, and to permit persons to whom the Software is 118289b279Sblueswir1 * furnished to do so, subject to the following conditions: 128289b279Sblueswir1 * 138289b279Sblueswir1 * The above copyright notice and this permission notice shall be included in 148289b279Sblueswir1 * all copies or substantial portions of the Software. 158289b279Sblueswir1 * 168289b279Sblueswir1 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 178289b279Sblueswir1 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 188289b279Sblueswir1 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 198289b279Sblueswir1 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 208289b279Sblueswir1 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 218289b279Sblueswir1 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 228289b279Sblueswir1 * THE SOFTWARE. 238289b279Sblueswir1 */ 2414e54f8eSMarkus Armbruster 2514e54f8eSMarkus Armbruster #ifndef SPARC_TCG_TARGET_H 2614e54f8eSMarkus Armbruster #define SPARC_TCG_TARGET_H 278289b279Sblueswir1 28abce5964SRichard Henderson #define TCG_TARGET_INSN_UNIT_SIZE 4 298289b279Sblueswir1 #define TCG_TARGET_NB_REGS 32 3026a75d12SRichard Henderson #define MAX_CODE_GEN_BUFFER_SIZE (2 * GiB) 318289b279Sblueswir1 32771142c2SRichard Henderson typedef enum { 338289b279Sblueswir1 TCG_REG_G0 = 0, 348289b279Sblueswir1 TCG_REG_G1, 358289b279Sblueswir1 TCG_REG_G2, 368289b279Sblueswir1 TCG_REG_G3, 378289b279Sblueswir1 TCG_REG_G4, 388289b279Sblueswir1 TCG_REG_G5, 398289b279Sblueswir1 TCG_REG_G6, 408289b279Sblueswir1 TCG_REG_G7, 418289b279Sblueswir1 TCG_REG_O0, 428289b279Sblueswir1 TCG_REG_O1, 438289b279Sblueswir1 TCG_REG_O2, 448289b279Sblueswir1 TCG_REG_O3, 458289b279Sblueswir1 TCG_REG_O4, 468289b279Sblueswir1 TCG_REG_O5, 478289b279Sblueswir1 TCG_REG_O6, 488289b279Sblueswir1 TCG_REG_O7, 498289b279Sblueswir1 TCG_REG_L0, 508289b279Sblueswir1 TCG_REG_L1, 518289b279Sblueswir1 TCG_REG_L2, 528289b279Sblueswir1 TCG_REG_L3, 538289b279Sblueswir1 TCG_REG_L4, 548289b279Sblueswir1 TCG_REG_L5, 558289b279Sblueswir1 TCG_REG_L6, 568289b279Sblueswir1 TCG_REG_L7, 578289b279Sblueswir1 TCG_REG_I0, 588289b279Sblueswir1 TCG_REG_I1, 598289b279Sblueswir1 TCG_REG_I2, 608289b279Sblueswir1 TCG_REG_I3, 618289b279Sblueswir1 TCG_REG_I4, 628289b279Sblueswir1 TCG_REG_I5, 638289b279Sblueswir1 TCG_REG_I6, 648289b279Sblueswir1 TCG_REG_I7, 65771142c2SRichard Henderson } TCGReg; 668289b279Sblueswir1 670c554161SRichard Henderson #define TCG_AREG0 TCG_REG_I0 68*6b8abd24SRichard Henderson #define TCG_REG_ZERO TCG_REG_G0 698289b279Sblueswir1 70cb9c377fSPaolo Bonzini #endif 71