Added support for OPEN_CONSOLE and CLOSE_CONSOLE; fixed PUTS bug
Added support for OPEN_CONSOLE and CLOSE_CONSOLE; fixed PUTS bug

andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin