)]}' { "commit": "29fce1d26b395f3a82f757ea37f4c53da8fbde11", "tree": "cf1ffbb4b9268e4fc7c254d8d6bc6ec4a582ea8a", "parents": [ "76b10e2b4abf36e441707e7e075ade75b11ab667" ], "author": { "name": "Gabe Black", "email": "gabeblack@google.com", "time": "Mon Nov 04 15:02:04 2019 -0800" }, "committer": { "name": "Gabe Black", "email": "gabeblack@google.com", "time": "Wed Nov 06 01:41:12 2019 +0000" }, "message": "cpu: Use std::array for registers in SimpleThread.\n\nIf the number of one of the register types is zero (useful on ARM in\nthe near future), memset will complain that it\u0027s given the length of\nthe array without multiplying by the size of the array elements. This\nis a false positive since the length of the array and the number of\nelements are both zero.\n\nTo avoid that warning/error and to simplify and update the SimpleThread\nclass slightly, this change replaces the C style arrays with\nstd::array.\n\nChange-Id: Ifedd081a1940a578765c4d585e623236008ace67\nReviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22523\nReviewed-by: Jason Lowe-Power \u003cjason@lowepower.com\u003e\nMaintainer: Gabe Black \u003cgabeblack@google.com\u003e\nTested-by: kokoro \u003cnoreply+kokoro@google.com\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "3a7c85a90acec3489c42156fb64ce1ad20f5508b", "old_mode": 33188, "old_path": "src/cpu/simple_thread.hh", "new_id": "033a0777a834f1ecef2c2dc814e429f7b26c8250", "new_mode": 33188, "new_path": "src/cpu/simple_thread.hh" } ] }