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:
Edgar E. Iglesias 2013-12-17 15:29:06 +10:00
parent 5ce5944dc0
commit db3be60deb
11 changed files with 34 additions and 26 deletions

View file

@ -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);
}
/*