mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -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: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20241024-rust-round-2-v1-2-051e7a25b978@linaro.org
This commit is contained in:
parent
ca5aa28e24
commit
37fdb2f56a
37 changed files with 1906 additions and 12 deletions
19
subprojects/packagefiles/arbitrary-int-1-rs/meson.build
Normal file
19
subprojects/packagefiles/arbitrary-int-1-rs/meson.build
Normal file
|
@ -0,0 +1,19 @@
|
|||
project('arbitrary-int-1-rs', 'rust',
|
||||
version: '1.2.7',
|
||||
license: 'MIT',
|
||||
default_options: [])
|
||||
|
||||
_arbitrary_int_rs = static_library(
|
||||
'arbitrary_int',
|
||||
files('src/lib.rs'),
|
||||
gnu_symbol_visibility: 'hidden',
|
||||
override_options: ['rust_std=2021', 'build.rust_std=2021'],
|
||||
rust_abi: 'rust',
|
||||
dependencies: [],
|
||||
)
|
||||
|
||||
arbitrary_int_dep = declare_dependency(
|
||||
link_with: _arbitrary_int_rs,
|
||||
)
|
||||
|
||||
meson.override_dependency('arbitrary-int-1-rs', arbitrary_int_dep)
|
Loading…
Add table
Add a link
Reference in a new issue