mirror of
https://github.com/qemu/qemu.git
synced 2026-01-14 03:01:08 +00:00
rust/system: Stop exposing bogus DEVICE_NATIVE_ENDIAN symbol
We want to remove the bogus DEVICE_NATIVE_ENDIAN definition (by only having it explicit, either big or little one). Stop exposing it to rust devices to avoid it spreading further. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20251224134644.85582-8-philmd@linaro.org>
This commit is contained in:
@ -78,12 +78,6 @@ impl<T> MemoryRegionOpsBuilder<T> {
|
||||
self
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub const fn native_endian(mut self) -> Self {
|
||||
self.0.endianness = device_endian::DEVICE_NATIVE_ENDIAN;
|
||||
self
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub const fn valid_sizes(mut self, min: u32, max: u32) -> Self {
|
||||
self.0.valid.min_access_size = min;
|
||||
|
||||
Reference in New Issue
Block a user