mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
rust: add PL011 device model
This commit adds a re-implementation of hw/char/pl011.c in Rust. How to build: 1. Configure a QEMU build with: --enable-system --target-list=aarch64-softmmu --enable-rust 2. Launching a VM with qemu-system-aarch64 should use the Rust version of the pl011 device Co-authored-by: Junjie Mao <junjie.mao@intel.com> Co-authored-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Junjie Mao <junjie.mao@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Link: https://lore.kernel.org/r/6ec1d4fb8db2a1d7ba94c73e65d9770371b7857d.1727961605.git.manos.pitsidianakis@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2b74dd9180
commit
d0f0cd5b1f
37 changed files with 1906 additions and 12 deletions
45
subprojects/packagefiles/bilge-impl-0.2-rs/meson.build
Normal file
45
subprojects/packagefiles/bilge-impl-0.2-rs/meson.build
Normal file
|
@ -0,0 +1,45 @@
|
|||
project('bilge-impl-0.2-rs', 'rust',
|
||||
version: '0.2.0',
|
||||
license: 'MIT OR Apache-2.0',
|
||||
default_options: [])
|
||||
|
||||
subproject('itertools-0.11-rs', required: true)
|
||||
subproject('proc-macro-error-attr-1-rs', required: true)
|
||||
subproject('proc-macro-error-1-rs', required: true)
|
||||
subproject('quote-1-rs', required: true)
|
||||
subproject('syn-2-rs', required: true)
|
||||
subproject('proc-macro2-1-rs', required: true)
|
||||
|
||||
itertools_dep = dependency('itertools-0.11-rs', native: true)
|
||||
proc_macro_error_attr_dep = dependency('proc-macro-error-attr-1-rs', native: true)
|
||||
proc_macro_error_dep = dependency('proc-macro-error-1-rs', native: true)
|
||||
quote_dep = dependency('quote-1-rs', native: true)
|
||||
syn_dep = dependency('syn-2-rs', native: true)
|
||||
proc_macro2_dep = dependency('proc-macro2-1-rs', native: true)
|
||||
|
||||
rust = import('rust')
|
||||
|
||||
_bilge_impl_rs = rust.proc_macro(
|
||||
'bilge_impl',
|
||||
files('src/lib.rs'),
|
||||
override_options: ['rust_std=2021', 'build.rust_std=2021'],
|
||||
rust_args: [
|
||||
'--cfg', 'use_fallback',
|
||||
'--cfg', 'feature="syn-error"',
|
||||
'--cfg', 'feature="proc-macro"',
|
||||
],
|
||||
dependencies: [
|
||||
itertools_dep,
|
||||
proc_macro_error_attr_dep,
|
||||
proc_macro_error_dep,
|
||||
quote_dep,
|
||||
syn_dep,
|
||||
proc_macro2_dep,
|
||||
],
|
||||
)
|
||||
|
||||
bilge_impl_dep = declare_dependency(
|
||||
link_with: _bilge_impl_rs,
|
||||
)
|
||||
|
||||
meson.override_dependency('bilge-impl-0.2-rs', bilge_impl_dep)
|
Loading…
Add table
Add a link
Reference in a new issue