Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
e7e71b0e
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看板
提交
e7e71b0e
编写于
8月 15, 2011
作者:
A
Anthony Liguori
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
char: rename qemu_chr_printf() -> qemu_chr_fe_printf()
Signed-off-by:
N
Anthony Liguori
<
aliguori@us.ibm.com
>
上级
2cc6e0a1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
13 deletion
+13
-13
hw/mips_malta.c
hw/mips_malta.c
+11
-11
qemu-char.c
qemu-char.c
+1
-1
qemu-char.h
qemu-char.h
+1
-1
未找到文件。
hw/mips_malta.c
浏览文件 @
e7e71b0e
...
...
@@ -92,8 +92,8 @@ static void malta_fpga_update_display(void *opaque)
}
leds_text
[
8
]
=
'\0'
;
qemu_chr_printf
(
s
->
display
,
"\e[H
\n\n
|\e[32m%-8.8s\e[00m|
\r\n
"
,
leds_text
);
qemu_chr_printf
(
s
->
display
,
"
\n\n\n\n
|\e[31m%-8.8s\e[00m|"
,
s
->
display_text
);
qemu_chr_
fe_
printf
(
s
->
display
,
"\e[H
\n\n
|\e[32m%-8.8s\e[00m|
\r\n
"
,
leds_text
);
qemu_chr_
fe_
printf
(
s
->
display
,
"
\n\n\n\n
|\e[31m%-8.8s\e[00m|"
,
s
->
display_text
);
}
/*
...
...
@@ -417,15 +417,15 @@ static void malta_fpga_reset(void *opaque)
static
void
malta_fpga_led_init
(
CharDriverState
*
chr
)
{
qemu_chr_printf
(
chr
,
"\e[HMalta LEDBAR
\r\n
"
);
qemu_chr_printf
(
chr
,
"+--------+
\r\n
"
);
qemu_chr_printf
(
chr
,
"+ +
\r\n
"
);
qemu_chr_printf
(
chr
,
"+--------+
\r\n
"
);
qemu_chr_printf
(
chr
,
"
\n
"
);
qemu_chr_printf
(
chr
,
"Malta ASCII
\r\n
"
);
qemu_chr_printf
(
chr
,
"+--------+
\r\n
"
);
qemu_chr_printf
(
chr
,
"+ +
\r\n
"
);
qemu_chr_printf
(
chr
,
"+--------+
\r\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"\e[HMalta LEDBAR
\r\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"+--------+
\r\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"+ +
\r\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"+--------+
\r\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"
\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"Malta ASCII
\r\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"+--------+
\r\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"+ +
\r\n
"
);
qemu_chr_
fe_
printf
(
chr
,
"+--------+
\r\n
"
);
}
static
MaltaFPGAState
*
malta_fpga_init
(
target_phys_addr_t
base
,
qemu_irq
uart_irq
,
CharDriverState
*
uart_chr
)
...
...
qemu-char.c
浏览文件 @
e7e71b0e
...
...
@@ -179,7 +179,7 @@ void qemu_chr_accept_input(CharDriverState *s)
s
->
chr_accept_input
(
s
);
}
void
qemu_chr_printf
(
CharDriverState
*
s
,
const
char
*
fmt
,
...)
void
qemu_chr_
fe_
printf
(
CharDriverState
*
s
,
const
char
*
fmt
,
...)
{
char
buf
[
READ_BUF_LEN
];
va_list
ap
;
...
...
qemu-char.h
浏览文件 @
e7e71b0e
...
...
@@ -85,7 +85,7 @@ void qemu_chr_set_echo(struct CharDriverState *chr, bool echo);
void
qemu_chr_guest_open
(
struct
CharDriverState
*
chr
);
void
qemu_chr_guest_close
(
struct
CharDriverState
*
chr
);
void
qemu_chr_close
(
CharDriverState
*
chr
);
void
qemu_chr_printf
(
CharDriverState
*
s
,
const
char
*
fmt
,
...)
void
qemu_chr_
fe_
printf
(
CharDriverState
*
s
,
const
char
*
fmt
,
...)
GCC_FMT_ATTR
(
2
,
3
);
int
qemu_chr_fe_write
(
CharDriverState
*
s
,
const
uint8_t
*
buf
,
int
len
);
void
qemu_chr_send_event
(
CharDriverState
*
s
,
int
event
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录