mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
Add some missing static and const qualifiers, reg_names only used if NDEBUG set
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5421 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d9b630fdb0
commit
d4a9eb1fc6
7 changed files with 32 additions and 15 deletions
|
@ -22,6 +22,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef NDEBUG
|
||||
static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
|
||||
"%r0",
|
||||
"%r1",
|
||||
|
@ -56,6 +57,7 @@ static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
|
|||
"%sp",
|
||||
"%r31",
|
||||
};
|
||||
#endif
|
||||
|
||||
static const int tcg_target_reg_alloc_order[] = {
|
||||
TCG_REG_R4,
|
||||
|
@ -106,7 +108,7 @@ static inline int tcg_target_get_call_iarg_regs_count(int flags)
|
|||
}
|
||||
|
||||
/* parse target specific constraints */
|
||||
int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str)
|
||||
static int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str)
|
||||
{
|
||||
const char *ct_str;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue