Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
e9a9a5b6
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e9a9a5b6
编写于
5月 15, 2014
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tcg-i386: Make debug_frame const
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
2c90784a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
21 deletion
+17
-21
tcg/i386/tcg-target.c
tcg/i386/tcg-target.c
+17
-21
未找到文件。
tcg/i386/tcg-target.c
浏览文件 @
e9a9a5b6
...
...
@@ -2341,8 +2341,7 @@ static void tcg_target_init(TCGContext *s)
}
typedef
struct
{
DebugFrameCIE
cie
;
DebugFrameFDEHeader
fde
;
DebugFrameHeader
h
;
uint8_t
fde_def_cfa
[
4
];
uint8_t
fde_reg_ofs
[
14
];
}
DebugFrame
;
...
...
@@ -2354,16 +2353,16 @@ QEMU_BUILD_BUG_ON(FRAME_SIZE >= (1 << 14));
/* Host machine without ELF. */
#elif TCG_TARGET_REG_BITS == 64
#define ELF_HOST_MACHINE EM_X86_64
static
DebugFrame
debug_frame
=
{
.
cie
.
len
=
sizeof
(
DebugFrameCIE
)
-
4
,
/* length after .len member */
.
cie
.
id
=
-
1
,
.
cie
.
version
=
1
,
.
cie
.
code_align
=
1
,
.
cie
.
data_align
=
0x78
,
/* sleb128 -8 */
.
cie
.
return_column
=
16
,
static
const
DebugFrame
debug_frame
=
{
.
h
.
cie
.
len
=
sizeof
(
DebugFrameCIE
)
-
4
,
/* length after .len member */
.
h
.
cie
.
id
=
-
1
,
.
h
.
cie
.
version
=
1
,
.
h
.
cie
.
code_align
=
1
,
.
h
.
cie
.
data_align
=
0x78
,
/* sleb128 -8 */
.
h
.
cie
.
return_column
=
16
,
/* Total FDE size does not include the "len" member. */
.
fde
.
len
=
sizeof
(
DebugFrame
)
-
offsetof
(
DebugFrame
,
fde
.
cie_offset
),
.
h
.
fde
.
len
=
sizeof
(
DebugFrame
)
-
offsetof
(
DebugFrame
,
h
.
fde
.
cie_offset
),
.
fde_def_cfa
=
{
12
,
7
,
/* DW_CFA_def_cfa %rsp, ... */
...
...
@@ -2383,16 +2382,16 @@ static DebugFrame debug_frame = {
};
#else
#define ELF_HOST_MACHINE EM_386
static
DebugFrame
debug_frame
=
{
.
cie
.
len
=
sizeof
(
DebugFrameCIE
)
-
4
,
/* length after .len member */
.
cie
.
id
=
-
1
,
.
cie
.
version
=
1
,
.
cie
.
code_align
=
1
,
.
cie
.
data_align
=
0x7c
,
/* sleb128 -4 */
.
cie
.
return_column
=
8
,
static
const
DebugFrame
debug_frame
=
{
.
h
.
cie
.
len
=
sizeof
(
DebugFrameCIE
)
-
4
,
/* length after .len member */
.
h
.
cie
.
id
=
-
1
,
.
h
.
cie
.
version
=
1
,
.
h
.
cie
.
code_align
=
1
,
.
h
.
cie
.
data_align
=
0x7c
,
/* sleb128 -4 */
.
h
.
cie
.
return_column
=
8
,
/* Total FDE size does not include the "len" member. */
.
fde
.
len
=
sizeof
(
DebugFrame
)
-
offsetof
(
DebugFrame
,
fde
.
cie_offset
),
.
h
.
fde
.
len
=
sizeof
(
DebugFrame
)
-
offsetof
(
DebugFrame
,
h
.
fde
.
cie_offset
),
.
fde_def_cfa
=
{
12
,
4
,
/* DW_CFA_def_cfa %esp, ... */
...
...
@@ -2413,9 +2412,6 @@ static DebugFrame debug_frame = {
#if defined(ELF_HOST_MACHINE)
void
tcg_register_jit
(
void
*
buf
,
size_t
buf_size
)
{
debug_frame
.
fde
.
func_start
=
(
uintptr_t
)
buf
;
debug_frame
.
fde
.
func_len
=
buf_size
;
tcg_register_jit_int
(
buf
,
buf_size
,
&
debug_frame
,
sizeof
(
debug_frame
));
}
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录