IDE Disk: Handle bad IDE image size
Review Request #3110 - Created Sept. 14, 2015 and submitted
| Information | |
|---|---|
| Dongxue Zhang | |
| gem5 | |
| 78bf2dfeac083f5f945ce61cf8ec32374e7c94ae | |
| (0), Bad, IDE, an, cause, core, dumped, image, size, will | |
| Reviewers | |
| Default | |
IDE Disk: Handle bad IDE image size
Handle bad IDE disk image size 0. When image size is 0, gem5 will cause an exception with log "Floating point exception (core dumped)".
Handle bad IDE disk image size 0. When image size is 0, gem5 will cause an exception with log "Floating point exception (core dumped)".
Build with:
scons build/MIPS/gem5.opt CPU_MODELS=O3CPU,AtomicSimpleCPU -j32
Build Disk with(disk size is 0):
touch /dist/m5/system/disks/test0.img
touch /dist/m5/system/disks/linux-bigswap2.imgBuild kernel:
With Mips malta kernel, 32bit
Run with:
./build/MIPS/gem5.opt ./configs/example/fs.py --disk-image=test0.img
Error log, before patch:
Floating point exception (core dumped)
