diff options
author | Ruiling Song <ruiling.song@intel.com> | 2014-07-30 13:59:30 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-07-30 15:24:03 +0800 |
commit | 4c713434c54a9edafbf5c5e9a830fd00cbf7db0d (patch) | |
tree | 4690e52273daee56cf146450d50833e03a317016 /backend/src/gbe_bin_interpreter.cpp | |
parent | e16f34c027b3e7a19355c91d728632d82995b2b0 (diff) |
GBE: Handle bti allocation for internal buffer used by printf.
1. Move the bti/Register map from gbe::Context to ir::Function.
2. use GlobalVariable instead of 'call' to get internal buffer (used for printf) base address.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'backend/src/gbe_bin_interpreter.cpp')
-rw-r--r-- | backend/src/gbe_bin_interpreter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/src/gbe_bin_interpreter.cpp b/backend/src/gbe_bin_interpreter.cpp index 2f02b34f..ffca1f55 100644 --- a/backend/src/gbe_bin_interpreter.cpp +++ b/backend/src/gbe_bin_interpreter.cpp @@ -66,6 +66,8 @@ struct BinInterpCallBackInitializer gbe_get_image_base_index = gbe::getImageBaseIndex; gbe_set_image_base_index = gbe::setImageBaseIndex; gbe_get_printf_num = gbe::kernelGetPrintfNum; + gbe_get_printf_buf_bti = gbe::kernelGetPrintfBufBTI; + gbe_get_printf_indexbuf_bti = gbe::kernelGetPrintfIndexBufBTI; gbe_dup_printfset = gbe::kernelDupPrintfSet; gbe_get_printf_sizeof_size = gbe::kernelGetPrintfSizeOfSize; gbe_release_printf_info = gbe::kernelReleasePrintfSet; |