Deleted Added
full compact
uwx_env.h (129059) uwx_env.h (160157)
1/*
1/*
2Copyright (c) 2003 Hewlett-Packard Development Company, L.P.
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:

--- 64 unchanged lines hidden (view full) ---

75
76struct uwx_str_pool;
77
78struct uwx_env {
79 struct uwx_context context;
80 uint64_t *rstate;
81 uint64_t remapped_ip;
82 int64_t function_offset;
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:

--- 64 unchanged lines hidden (view full) ---

75
76struct uwx_str_pool;
77
78struct uwx_env {
79 struct uwx_context context;
80 uint64_t *rstate;
81 uint64_t remapped_ip;
82 int64_t function_offset;
83 uint64_t ptr_size;
84 uint64_t uinfo_hdr;
85 uint64_t uinfo_end;
86 uint64_t code_start;
87 uint64_t text_base;
83 struct uwx_history history;
84 alloc_cb allocate_cb;
85 free_cb free_cb;
86 struct uwx_scoreboard *free_scoreboards;
87 struct uwx_scoreboard *used_scoreboards;
88 struct uwx_scoreboard *labeled_scoreboards;
89 struct uwx_str_pool *string_pool;
90 char *module_name;
91 char *function_name;
92 intptr_t cb_token;
93 copyin_cb copyin;
94 lookupip_cb lookupip;
95 int remote;
96 int byte_swap;
97 int abi_context;
98 int nsbreg;
99 int nscoreboards;
88 struct uwx_history history;
89 alloc_cb allocate_cb;
90 free_cb free_cb;
91 struct uwx_scoreboard *free_scoreboards;
92 struct uwx_scoreboard *used_scoreboards;
93 struct uwx_scoreboard *labeled_scoreboards;
94 struct uwx_str_pool *string_pool;
95 char *module_name;
96 char *function_name;
97 intptr_t cb_token;
98 copyin_cb copyin;
99 lookupip_cb lookupip;
100 int remote;
101 int byte_swap;
102 int abi_context;
103 int nsbreg;
104 int nscoreboards;
105 int on_heap;
100 int trace;
101};
102
103extern alloc_cb uwx_allocate_cb;
104extern free_cb uwx_free_cb;
106 int trace;
107};
108
109extern alloc_cb uwx_allocate_cb;
110extern free_cb uwx_free_cb;
111extern int uwx_init_env(struct uwx_env *env, size_t total_size);