Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
c92bb2c7
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看板
提交
c92bb2c7
编写于
9月 25, 2011
作者:
A
Avi Kivity
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ppc_oldworld: convert to memory API
Signed-off-by:
N
Avi Kivity
<
avi@redhat.com
>
上级
cfce6d89
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
5 deletion
+8
-5
hw/ppc_oldworld.c
hw/ppc_oldworld.c
+8
-5
未找到文件。
hw/ppc_oldworld.c
浏览文件 @
c92bb2c7
...
...
@@ -73,11 +73,13 @@ static void ppc_heathrow_init (ram_addr_t ram_size,
const
char
*
initrd_filename
,
const
char
*
cpu_model
)
{
MemoryRegion
*
sysmem
=
get_system_memory
();
CPUState
*
env
=
NULL
;
char
*
filename
;
qemu_irq
*
pic
,
**
heathrow_irqs
;
int
linux_boot
,
i
;
ram_addr_t
ram_offset
,
bios_offset
;
MemoryRegion
*
ram
=
g_new
(
MemoryRegion
,
1
);
MemoryRegion
*
bios
=
g_new
(
MemoryRegion
,
1
);
uint32_t
kernel_base
,
initrd_base
,
cmdline_base
=
0
;
int32_t
kernel_size
,
initrd_size
;
PCIBus
*
pci_bus
;
...
...
@@ -114,15 +116,16 @@ static void ppc_heathrow_init (ram_addr_t ram_size,
exit
(
1
);
}
ram_offset
=
qemu_ram_alloc
(
NULL
,
"ppc_heathrow.ram"
,
ram_size
);
cpu_register_physical_memory
(
0
,
ram_size
,
ram_offset
);
memory_region_init_ram
(
ram
,
NULL
,
"ppc_heathrow.ram"
,
ram_size
);
memory_region_add_subregion
(
sysmem
,
0
,
ram
);
/* allocate and load BIOS */
bios_offset
=
qemu_ram_alloc
(
NULL
,
"ppc_heathrow.bios"
,
BIOS_SIZE
);
memory_region_init_ram
(
bios
,
NULL
,
"ppc_heathrow.bios"
,
BIOS_SIZE
);
if
(
bios_name
==
NULL
)
bios_name
=
PROM_FILENAME
;
filename
=
qemu_find_file
(
QEMU_FILE_TYPE_BIOS
,
bios_name
);
cpu_register_physical_memory
(
PROM_ADDR
,
BIOS_SIZE
,
bios_offset
|
IO_MEM_ROM
);
memory_region_set_readonly
(
bios
,
true
);
memory_region_add_subregion
(
sysmem
,
PROM_ADDR
,
bios
);
/* Load OpenBIOS (ELF) */
if
(
filename
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录