)]}' { "commit": "d421e7acd065c8960052794c6da611e958a41ebd", "tree": "9b84181a3a2c1a3c227c13052eac6dc89e59663f", "parents": [ "c96409f301340f16e16052a1ade117119959591a" ], "author": { "name": "Giacomo Travaglini", "email": "giacomo.travaglini@arm.com", "time": "Thu Dec 02 09:49:56 2021 +0000" }, "committer": { "name": "Giacomo Travaglini", "email": "giacomo.travaglini@arm.com", "time": "Thu Dec 09 10:48:44 2021 +0000" }, "message": "ext: Fix segfault in simulate_limit_event shortcut\n\nIn the SST integration the top of the main queue is checked\nfor an event before starting the simulation.\n\nIf the first event is scheduled after the ending tick, we are\njust returning the simulate_limit_event without entering\nthe simulation loop.\n\nIf the method is called with an empty queue, the following\nline will segfault (getHead() \u003d\u003d nullptr):\n\ngem5::mainEventQueue[0]-\u003egetHead()-\u003ewhen()\n\nWith this patch we are covering the case where we have\nan empty event queue\n\nChange-Id: I04463b45b269361172a9dd2fe1ba6e9428ac64f5\nSigned-off-by: Giacomo Travaglini \u003cgiacomo.travaglini@arm.com\u003e\nReviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53723\nReviewed-by: Hoa Nguyen \u003choanguyen@ucdavis.edu\u003e\nReviewed-by: Jason Lowe-Power \u003cpower.jg@gmail.com\u003e\nMaintainer: Jason Lowe-Power \u003cpower.jg@gmail.com\u003e\nTested-by: kokoro \u003cnoreply+kokoro@google.com\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "924ee49b3992faa66bca4cf58ab77c014736d83f", "old_mode": 33188, "old_path": "ext/sst/gem5.cc", "new_id": "c93c722cf39673d7f5411b3884c7d955594cbd5f", "new_mode": 33188, "new_path": "ext/sst/gem5.cc" } ] }