mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
exec: Make stb_phys input an AddressSpace
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
5ce5944dc0
commit
db3be60deb
11 changed files with 34 additions and 26 deletions
|
@ -144,12 +144,14 @@ static bool megasas_is_jbod(MegasasState *s)
|
|||
|
||||
static void megasas_frame_set_cmd_status(unsigned long frame, uint8_t v)
|
||||
{
|
||||
stb_phys(frame + offsetof(struct mfi_frame_header, cmd_status), v);
|
||||
stb_phys(&address_space_memory,
|
||||
frame + offsetof(struct mfi_frame_header, cmd_status), v);
|
||||
}
|
||||
|
||||
static void megasas_frame_set_scsi_status(unsigned long frame, uint8_t v)
|
||||
{
|
||||
stb_phys(frame + offsetof(struct mfi_frame_header, scsi_status), v);
|
||||
stb_phys(&address_space_memory,
|
||||
frame + offsetof(struct mfi_frame_header, scsi_status), v);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue