atomic.cc (11151:ca4ea9b5c052) atomic.cc (11303:f694764d656d)
1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2012-2013,2015 ARM Limited
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

410 data += size;
411 //Adjust the size to get the remaining bytes.
412 size = addr + fullSize - secondAddr;
413 //And access the right address.
414 addr = secondAddr;
415 }
416}
417
1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2012-2013,2015 ARM Limited
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

410 data += size;
411 //Adjust the size to get the remaining bytes.
412 size = addr + fullSize - secondAddr;
413 //And access the right address.
414 addr = secondAddr;
415 }
416}
417
418Fault
419AtomicSimpleCPU::initiateMemRead(Addr addr, unsigned size, unsigned flags)
420{
421 panic("initiateMemRead() is for timing accesses, and should "
422 "never be called on AtomicSimpleCPU.\n");
423}
418
419Fault
420AtomicSimpleCPU::writeMem(uint8_t *data, unsigned size,
421 Addr addr, unsigned flags, uint64_t *res)
422{
423 SimpleExecContext& t_info = *threadInfo[curThread];
424 SimpleThread* thread = t_info.thread;
425 static uint8_t zero_array[64] = {};

--- 267 unchanged lines hidden ---
424
425Fault
426AtomicSimpleCPU::writeMem(uint8_t *data, unsigned size,
427 Addr addr, unsigned flags, uint64_t *res)
428{
429 SimpleExecContext& t_info = *threadInfo[curThread];
430 SimpleThread* thread = t_info.thread;
431 static uint8_t zero_array[64] = {};

--- 267 unchanged lines hidden ---