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