// Path: se/sics/mspsim/core/EmulationLogger.java
// public enum WarningType {
//     EMULATION_ERROR, EXECUTION,
//     MISALIGNED_READ, MISALIGNED_WRITE,
//     ADDRESS_OUT_OF_BOUNDS_READ, ADDRESS_OUT_OF_BOUNDS_WRITE,
//     ILLEGAL_IO_WRITE, VOID_IO_READ, VOID_IO_WRITE
// };


import java.util.Calendar;
import java.util.GregorianCalendar;
import se.sics.mspsim.core.EmulationLogger.WarningType;
		}
		cal.set(calField, res);
		cal.get(calField); // Until get is not done the fields are not set
	}

	/**
	 * Clear the highest priority interrupt flag
	 */
	private void clearHighestInterrupt() {
		if (readyInterruptFlag) {
			readyInterruptFlag = false;
		} else if (eventInterruptFlag) {
			eventInterruptFlag = false;
		} else if (alarmInterruptFlag) {
			alarmInterruptFlag = false;
		}

		if (getIV() > 0) {
			cpu.flagInterrupt(rtcIntVector, this, true);
		}
	}

	/**
	 * The registers are written
	 */
	public void write(int address, int value, boolean word, long cycles) {
		/*
		 * XXX: this assumes always word access
		 */
		if (!word) {
// Path: se/sics/mspsim/core/EmulationLogger.java
// public enum WarningType {
//     EMULATION_ERROR, EXECUTION,
//     MISALIGNED_READ, MISALIGNED_WRITE,
//     ADDRESS_OUT_OF_BOUNDS_READ, ADDRESS_OUT_OF_BOUNDS_WRITE,
//     ILLEGAL_IO_WRITE, VOID_IO_READ, VOID_IO_WRITE
// };


// Path: se/sics/mspsim/core/RTC.java
import java.util.Calendar;
import java.util.GregorianCalendar;
import se.sics.mspsim.core.EmulationLogger.WarningType;

		}
		cal.set(calField, res);
		cal.get(calField); // Until get is not done the fields are not set
	}

	/**
	 * Clear the highest priority interrupt flag
	 */
	private void clearHighestInterrupt() {
		if (readyInterruptFlag) {
			readyInterruptFlag = false;
		} else if (eventInterruptFlag) {
			eventInterruptFlag = false;
		} else if (alarmInterruptFlag) {
			alarmInterruptFlag = false;
		}

		if (getIV() > 0) {
			cpu.flagInterrupt(rtcIntVector, this, true);
		}
	}

	/**
	 * The registers are written
	 */
	public void write(int address, int value, boolean word, long cycles) {
		/*
		 * XXX: this assumes always word access
		 */
		if (!word) {
			logw(WarningType.MISALIGNED_WRITE, "byte access not implemented");