1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
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;

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

637
638 if (vaddr < 10) {
639 DPRINTF(GDBRead, "read: reading memory location zero!\n");
640 vaddr = lastaddr + lastsize;
641 }
642
643 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size);
644
645 context->getVirtPort(context)->readBlob(vaddr, (uint8_t*)data, size);
645 VirtualPort *vp = context->getVirtPort(context);
646 vp->readBlob(vaddr, (uint8_t*)data, size);
647 context->delVirtPort(vp);
648
649#if TRACING_ON
650 if (DTRACE(GDBRead)) {
651 if (DTRACE(GDBExtra)) {
652 char buf[1024];
653 mem2hex(buf, data, size);
654 DPRINTFNR(": %s\n", buf);
655 } else

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

676 DPRINTFN("write: addr=%#x, size=%d", vaddr, size);
677 if (DTRACE(GDBExtra)) {
678 char buf[1024];
679 mem2hex(buf, data, size);
680 DPRINTFNR(": %s\n", buf);
681 } else
682 DPRINTFNR("\n");
683 }
684 VirtualPort *vp = context->getVirtPort(context);
685 vp->writeBlob(vaddr, (uint8_t*)data, size);
686 context->delVirtPort(vp);
687
683 context->getVirtPort(context)->writeBlob(vaddr, (uint8_t*)data, size);
684
688#ifdef IMB
689 alpha_pal_imb();
690#endif
691
692 return true;
693}
694
695

--- 485 unchanged lines hidden ---