Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
589f0aad
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
589f0aad
编写于
9月 12, 2011
作者:
A
Avi Kivity
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
petalogix_s2adsp1800: convert to memory API
Signed-off-by:
N
Avi Kivity
<
avi@redhat.com
>
上级
d7973c77
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
8 deletion
+10
-8
hw/petalogix_s3adsp1800_mmu.c
hw/petalogix_s3adsp1800_mmu.c
+10
-8
未找到文件。
hw/petalogix_s3adsp1800_mmu.c
浏览文件 @
589f0aad
...
...
@@ -35,6 +35,7 @@
#include "loader.h"
#include "elf.h"
#include "blockdev.h"
#include "exec-memory.h"
#include "microblaze_pic_cpu.h"
...
...
@@ -125,9 +126,10 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
DriveInfo
*
dinfo
;
int
i
;
target_phys_addr_t
ddr_base
=
0x90000000
;
ram_addr_t
phys_lmb_bram
;
ram_addr_t
phys_ram
;
MemoryRegion
*
phys_lmb_bram
=
g_new
(
MemoryRegion
,
1
)
;
MemoryRegion
*
phys_ram
=
g_new
(
MemoryRegion
,
1
)
;
qemu_irq
irq
[
32
],
*
cpu_irq
;
MemoryRegion
*
sysmem
=
get_system_memory
();
/* init CPUs */
if
(
cpu_model
==
NULL
)
{
...
...
@@ -139,13 +141,13 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
qemu_register_reset
(
main_cpu_reset
,
env
);
/* Attach emulated BRAM through the LMB. */
phys_lmb_bram
=
qemu_ram_alloc
(
NULL
,
"petalogix_s3adsp1800.lmb_bram"
,
LMB_BRAM_SIZE
);
cpu_register_physical_memory
(
0x00000000
,
LMB_BRAM_SIZE
,
phys_lmb_bram
|
IO_MEM_RAM
);
memory_region_init_ram
(
phys_lmb_bram
,
NULL
,
"petalogix_s3adsp1800.lmb_bram"
,
LMB_BRAM_SIZE
);
memory_region_add_subregion
(
sysmem
,
0x00000000
,
phys_lmb_bram
);
phys_ram
=
qemu_ram_alloc
(
NULL
,
"petalogix_s3adsp1800.ram"
,
ram_size
);
cpu_register_physical_memory
(
ddr_base
,
ram_size
,
phys_ram
|
IO_MEM_RAM
);
memory_region_init_ram
(
phys_ram
,
NULL
,
"petalogix_s3adsp1800.ram"
,
ram_size
);
memory_region_add_subregion
(
sysmem
,
ddr_base
,
phys_ram
);
dinfo
=
drive_get
(
IF_PFLASH
,
0
,
0
);
pflash_cfi01_register
(
0xa0000000
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录