Deleted Added
sdiff udiff text old ( 12392:e0dbdf30a2a5 ) new ( 12749:223c83ed9979 )
full compact
1/*
2 * Copyright (c) 2013 Andreas Sandberg
3 * All rights reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 1340 unchanged lines hidden (view full) ---

1349 pAddr = X86ISA::x86IOAddress(port);
1350 }
1351
1352 const MemCmd cmd(isWrite ? MemCmd::WriteReq : MemCmd::ReadReq);
1353 // Temporarily lock and migrate to the device event queue to
1354 // prevent races in multi-core mode.
1355 EventQueue::ScopedMigration migrate(deviceEventQueue());
1356 for (int i = 0; i < count; ++i) {
1357 RequestPtr io_req = new Request(pAddr, kvm_run.io.size,
1358 Request::UNCACHEABLE, dataMasterId());
1359 io_req->setContext(tc->contextId());
1360
1361 PacketPtr pkt = new Packet(io_req, cmd);
1362
1363 pkt->dataStatic(guestData);
1364 delay += dataPort.submitIO(pkt);
1365
1366 guestData += kvm_run.io.size;

--- 266 unchanged lines hidden ---