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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user