X86: Extend mov2int and mov2fp so they can support insert and extract instructions.
[gem5.git] / src / dev / pktfifo.cc
index 97d6c04afdef1fb7b4ee211dcc4c0f0e1f4dab76..e5d67d5ec1ab452fb85171ec944126683e45b262 100644 (file)
@@ -34,7 +34,7 @@
 using namespace std;
 
 bool
-PacketFifo::copyout(void *dest, int offset, int len)
+PacketFifo::copyout(void *dest, unsigned offset, unsigned len)
 {
     char *data = (char *)dest;
     if (offset + len >= size())
@@ -52,7 +52,7 @@ PacketFifo::copyout(void *dest, int offset, int len)
         if (i == end)
             panic("invalid fifo");
 
-        int size = min(pkt->length - offset, len);
+        unsigned size = min(pkt->length - offset, len);
         memcpy(data, pkt->data, size);
         offset = 0;
         len -= size;