When full dumping is enabled through init, the simulator throws in the
towel on the dumped CCB wait at the end of initialisation.
Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
mutex_lock(pdumpfs_mutex);
- if (pdumpfs_mode == PDUMPFS_MODE_FULL)
+ if ((pdumpfs_mode == PDUMPFS_MODE_FULL) &&
+ (frame_current != frame_init)) /* simulator bails otherwise */
ret = true;
else
ret = false;
mutex_lock(pdumpfs_mutex);
- if (pdumpfs_mode == PDUMPFS_MODE_FULL)
+ if (pdumpfs_mode == PDUMPFS_MODE_DISABLED)
+ ret = false;
+ else if ((pdumpfs_mode == PDUMPFS_MODE_FULL) &&
+ (frame_current != frame_init)) /* simulator bails otherwise */
ret = true;
- else if ((pdumpfs_mode == PDUMPFS_MODE_STANDARD) &&
- (flags & PDUMP_FLAGS_CONTINUOUS))
+ else if (flags & PDUMP_FLAGS_CONTINUOUS)
ret = true;
else
ret = false;