Check-in [a39677c16d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:In RatufaCoat, ignore writes to ROM.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a39677c16dc161ecd7dd0c630d0637dccb697821
User & Date: stephanie.gawroriski 2019-06-13 19:03:09
Context
2019-06-13
21:39
Implement garbage collection of objects. check-in: 9cc578ba18 user: stephanie.gawroriski tags: trunk
19:03
In RatufaCoat, ignore writes to ROM. check-in: a39677c16d user: stephanie.gawroriski tags: trunk
19:02
When doing reference counting, use the new volatile register stuff instead of a fixed register position. check-in: abf8424601 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to ratufacoat/sjmerc.c.

642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
{
	/* Get the true pointer. */
	ptr = SJME_POINTER_OFFSET(ptr, off);
	
	/* Check against JVM areas. */
	if (jvm != NULL)
	{
		// Write to within ROM?
		if (ptr >= jvm->rom &&
			ptr < SJME_POINTER_OFFSET(jvm->rom, jvm->romsize))
			abort();
	}
	
	/* Write value to memory. */
	switch (size)
	{
			/* Byte */
		case 1:







|


|







642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
{
	/* Get the true pointer. */
	ptr = SJME_POINTER_OFFSET(ptr, off);
	
	/* Check against JVM areas. */
	if (jvm != NULL)
	{
		/* Ignore writes to ROM. */
		if (ptr >= jvm->rom &&
			ptr < SJME_POINTER_OFFSET(jvm->rom, jvm->romsize))
			return;
	}
	
	/* Write value to memory. */
	switch (size)
	{
			/* Byte */
		case 1: