uwx_uinfo.h revision 115013
1/* 2 * Copyright (c) 2002,2003 Hewlett-Packard Company 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included 12 * in all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 * DEALINGS IN THE SOFTWARE. 21 */ 22 23struct uwx_utable_entry; 24 25extern int uwx_decode_uinfo( 26 struct uwx_env *env, 27 struct uwx_utable_entry *uentry, 28 uint64_t **rstatep); 29 30extern int uwx_default_rstate( 31 struct uwx_env *env, 32 uint64_t **rstatep); 33 34/* Region header record */ 35 36struct uwx_rhdr { 37 int is_prologue; /* true if prologue region */ 38 unsigned int rlen; /* length of region (# instruction slots) */ 39 int mask; /* register save mask */ 40 int grsave; /* first gr used for saving */ 41 unsigned int ecount; /* epilogue count (0 = no epilogue) */ 42 unsigned int epilogue_t; /* epilogue "t" value */ 43}; 44 45struct uwx_bstream; 46 47extern int uwx_decode_rhdr( 48 struct uwx_env *env, 49 struct uwx_bstream *bstream, 50 struct uwx_rhdr *rhdr); 51 52extern int uwx_decode_prologue( 53 struct uwx_env *env, 54 struct uwx_bstream *bstream, 55 struct uwx_scoreboard *scoreboard, 56 struct uwx_rhdr *rhdr, 57 int ip_slot); 58 59extern int uwx_decode_body( 60 struct uwx_env *env, 61 struct uwx_bstream *bstream, 62 struct uwx_scoreboard *scoreboard, 63 struct uwx_rhdr *rhdr, 64 int ip_slot); 65