Mercurial > repos > blastem
comparison gen.h @ 665:d0943769353b
Added functions to gen_x86 for saving and restoring callee save registers to better abstract over ABI differences between x86 and x86-64
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 02 Jan 2015 13:14:09 -0800 |
parents | 24ccfd70133a |
children | a7774fc2de4b |
comparison
equal
deleted
inserted
replaced
664:bca748422bf0 | 665:d0943769353b |
---|---|
25 void jmp_r(code_info *code, uint8_t dst); | 25 void jmp_r(code_info *code, uint8_t dst); |
26 //call a function and put the arguments in the appropriate place according to the host ABI | 26 //call a function and put the arguments in the appropriate place according to the host ABI |
27 void call_args(code_info *code, code_ptr fun, uint32_t num_args, ...); | 27 void call_args(code_info *code, code_ptr fun, uint32_t num_args, ...); |
28 //like the above, but follows other aspects of the ABI like stack alignment | 28 //like the above, but follows other aspects of the ABI like stack alignment |
29 void call_args_abi(code_info *code, code_ptr fun, uint32_t num_args, ...); | 29 void call_args_abi(code_info *code, code_ptr fun, uint32_t num_args, ...); |
30 void save_callee_save_regs(code_info *code); | |
31 void restore_callee_save_regs(code_info *code); | |
30 | 32 |
31 #endif //GEN_H_ | 33 #endif //GEN_H_ |