thanks all,any more better examples are welcome!
________________________________
李翼超 charlie
Mobile:+86-15858232899<tel:+86-15858232899>
Email:liyic...@huawei.com<mailto:liyic...@huawei.com>
发件人: Pouya Fotouhi via
gem5-users<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
收件人: gem5 users mailing list<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
抄送: Gabe Black<gabe.bl...@gmail.com<mailto:gabe.bl...@gmail.com>>;Pouya
Fotouhi<pfoto...@ucdavis.edu<mailto:pfoto...@ucdavis.edu>>
主题: [gem5-users] Re: How to add a new pcie device on GEM5
时间: 2020-10-27 12:52:30
I second Gabe's suggestion. I think the IDE controller is a good starting point
since it mostly models the controller and passes more complicated (device
specific) functions to the disks.
I mostly templated based on the IDE controller when we started adding a PCI
interface for GPU (see WIP here:
https://gem5-review.googlesource.com/c/amd/gem5/+/23485).
Best,
On Mon, Oct 26, 2020 at 5:59 PM Gabe Black via gem5-users
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote:
The VirtIO device would be a pretty good example, although it does some unusual
things as far as determining how big it's BARs are supposed to be. The IDE
controller is a pretty simple device that's a little more representative in
that way. A lot of the complexity is in the actual disks themselves, with the
controller mostly just directing messages from the host to a particular disk.
Gabe
On Thu, Oct 22, 2020 at 6:37 AM Giacomo Travaglini via gem5-users
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote:
Hi,
I’d recommend having a look at the VirtIO device….
(I don’t know if there are better examples, more experienced people are welcome
to chime in)
Giacomo
From: Liyichao via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Sent: 22 October 2020 11:51
To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Cc: Liyichao <liyic...@huawei.com<mailto:liyic...@huawei.com>>
Subject: [gem5-users] How to add a new pcie device on GEM5
Hi All:
Any one has experience on how to add ad new pcie device on GEM5?
This device can be just a demo device which has only a few basic
operation like read,write…
So if I want to add a pcie device,any config I need to realize? Or any
examples?
________________________________
李翼超(Charlie)
华为技术有限公司 Huawei Technologies Co., Ltd.
[Company_logo]
部门:计算系统与组件开发部 [云与计算BG]
手 机:15858232899
电子邮件:liyic...@huawei.com<mailto:liyic...@huawei.com>
地址:中国(China)-杭州(Hangzhou)-滨江区江淑路360号华为杭州研发中心Z4# [3-A06]
________________________________
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI,
which
is intended only for the person or entity whose address is listed above. Any
use of the
information contained herein in any way (including, but not limited to, total
or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify
the sender by
phone or email immediately and delete it!
IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient,
please notify the sender immediately and do not disclose the contents to any
other person, use it for any purpose, or store or copy the information in any
medium. Thank you.
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
--
Pouya Fotouhi
PhD Candidate
Department of Electrical and Computer Engineering
University of California, Davis
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s