diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-31 03:46:50 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-31 03:46:50 +0000 |
commit | d9ba48308d50ae08e87dc4ea24cb9783b0568c08 (patch) | |
tree | 004dafbb1626ff081407526743a51c5c4d289224 /target-arm/helpers.h | |
parent | 6ddbc6e4cfbfa0937fdebd8aa7b518d8b7fd118b (diff) |
ARM TCG conversion 8/16.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4145 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/helpers.h')
-rw-r--r-- | target-arm/helpers.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/target-arm/helpers.h b/target-arm/helpers.h index 854b67c835..bd9962ef1f 100644 --- a/target-arm/helpers.h +++ b/target-arm/helpers.h @@ -1,6 +1,30 @@ #define DEF_HELPER(name, ret, args) ret glue(helper_,name) args; #ifdef GEN_HELPER +#define DEF_HELPER_0_0(name, ret, args) \ +DEF_HELPER(name, ret, args) \ +static inline void gen_helper_##name(void) \ +{ \ + tcg_gen_helper_0_0(helper_##name); \ +} +#define DEF_HELPER_0_1(name, ret, args) \ +DEF_HELPER(name, ret, args) \ +static inline void gen_helper_##name(TCGv arg1) \ +{ \ + tcg_gen_helper_0_1(helper_##name, arg1); \ +} +#define DEF_HELPER_0_2(name, ret, args) \ +DEF_HELPER(name, ret, args) \ +static inline void gen_helper_##name(TCGv arg1, TCGv arg2) \ +{ \ + tcg_gen_helper_0_2(helper_##name, arg1, arg2); \ +} +#define DEF_HELPER_1_0(name, ret, args) \ +DEF_HELPER(name, ret, args) \ +static inline void gen_helper_##name(TCGv ret) \ +{ \ + tcg_gen_helper_1_0(helper_##name, ret); \ +} #define DEF_HELPER_1_1(name, ret, args) \ DEF_HELPER(name, ret, args) \ static inline void gen_helper_##name(TCGv ret, TCGv arg1) \ @@ -21,6 +45,10 @@ static inline void gen_helper_##name(TCGv ret, \ tcg_gen_helper_1_3(helper_##name, ret, arg1, arg2, arg3); \ } #else /* !GEN_HELPER */ +#define DEF_HELPER_0_0 DEF_HELPER +#define DEF_HELPER_0_1 DEF_HELPER +#define DEF_HELPER_0_2 DEF_HELPER +#define DEF_HELPER_1_0 DEF_HELPER #define DEF_HELPER_1_1 DEF_HELPER #define DEF_HELPER_1_2 DEF_HELPER #define DEF_HELPER_1_3 DEF_HELPER @@ -74,8 +102,18 @@ DEF_HELPER_1_2(usat16, uint32_t, (uint32_t, uint32_t)) DEF_HELPER_1_2(usad8, uint32_t, (uint32_t, uint32_t)) DEF_HELPER_1_3(sel_flags, uint32_t, (uint32_t, uint32_t, uint32_t)) +DEF_HELPER_0_1(exception, void, (uint32_t)) +DEF_HELPER_0_0(wfi, void, (void)) + +DEF_HELPER_0_2(cpsr_write, void, (uint32_t, uint32_t)) +DEF_HELPER_1_0(cpsr_read, uint32_t, (void)) #undef DEF_HELPER +#undef DEF_HELPER_0_0 +#undef DEF_HELPER_0_1 +#undef DEF_HELPER_0_2 +#undef DEF_HELPER_1_0 #undef DEF_HELPER_1_1 #undef DEF_HELPER_1_2 +#undef DEF_HELPER_1_3 #undef GEN_HELPER |