tests: Fix compiler tests (#1678)

- This change updates syntax of constructors of Template Classes from
`class<T>()` to `class()`

- Initializes coherence to 0 in `src/mem/cache_blk.hh`

The above changes are made to solve the errors when compiling gem5 in
gcc 14
This commit is contained in:
Harshil Patel
2024-10-17 11:19:46 -07:00
committed by GitHub
parent d454e421d2
commit 7591f2a843
4 changed files with 6 additions and 6 deletions

View File

@@ -477,7 +477,7 @@ class VirtQueue : public Serializable
Index index;
};
VirtRing<T>(PortProxy &proxy, ByteOrder bo, uint16_t size) :
VirtRing(PortProxy &proxy, ByteOrder bo, uint16_t size) :
header{0, 0}, ring(size), _proxy(proxy), _base(0), byteOrder(bo)
{}
@@ -550,7 +550,7 @@ class VirtQueue : public Serializable
private:
// Remove default constructor
VirtRing<T>();
VirtRing();
/** Guest physical memory proxy */
PortProxy &_proxy;