diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2017-02-07 11:35:48 +0000 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2017-12-05 11:47:01 +0000 |
commit | 099cb037e83d1e7bb47ec0e8eaf649a63f889d38 (patch) | |
tree | da6877f00070e243cb83c233fb5debfdf82a15e2 /src/cpu/checker | |
parent | 3deff78fe40b9aa3d4e3a8571f13f29072efe4e4 (diff) | |
download | gem5-099cb037e83d1e7bb47ec0e8eaf649a63f889d38.tar.xz |
cpu: Add support for CMOs in the cpu models
Cache maintenance operations go through the write channel of the
cpu. This changes makes sure that the cpu does not try to fill in the
packet with data.
Change-Id: Ic83205bb1cda7967636d88f15adcb475eb38d158
Reviewed-by: Stephan Diestelhorst <stephan.diestelhorst@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5055
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/cpu/checker')
-rw-r--r-- | src/cpu/checker/cpu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/checker/cpu.cc b/src/cpu/checker/cpu.cc index b22fb2a45..48fcb202c 100644 --- a/src/cpu/checker/cpu.cc +++ b/src/cpu/checker/cpu.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011,2013 ARM Limited + * Copyright (c) 2011,2013,2017 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -310,7 +310,7 @@ CheckerCPU::writeMem(uint8_t *data, unsigned size, // If the request is to ZERO a cache block, there is no data to check // against, but it's all zero. We need something to compare to, so use a // const set of zeros. - if (flags & Request::CACHE_BLOCK_ZERO) { + if (flags & Request::STORE_NO_DATA) { assert(!data); assert(sizeof(zero_data) <= fullSize); data = zero_data; |