amba_device.cc (11793:ef606668d247) amba_device.cc (13230:2988dc5d1d6f)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

78 return false;
79
80 int byte = (daddr - AMBA_PER_ID0) << 1;
81 // Too noisy right now
82 DPRINTF(AMBA, "Returning %#x for offset %#x(%d)\n",
83 (amba_id >> byte) & 0xFF,
84 pkt->getAddr() - pio_addr, byte);
85 assert(pkt->getSize() == 4);
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

78 return false;
79
80 int byte = (daddr - AMBA_PER_ID0) << 1;
81 // Too noisy right now
82 DPRINTF(AMBA, "Returning %#x for offset %#x(%d)\n",
83 (amba_id >> byte) & 0xFF,
84 pkt->getAddr() - pio_addr, byte);
85 assert(pkt->getSize() == 4);
86 pkt->set((amba_id >> byte) & 0xFF);
86 pkt->setLE<uint32_t>((amba_id >> byte) & 0xFF);
87 return true;
88}
87 return true;
88}