aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t_st6
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2019-05-27 02:41:51 +0100
committerfishsoupisgood <github@madingley.org>2019-05-27 02:41:51 +0100
commit333b605b2afd472b823aeda0adf0e8b1ea9843c0 (patch)
treebc8f581317897e2e53f278f1716b4471fcdccd4f /tests/t_st6
downloadasl-master.tar.gz
asl-master.tar.bz2
asl-master.zip
initial commit from asl-1.41r8.tar.gzHEADmaster
Diffstat (limited to 'tests/t_st6')
-rw-r--r--tests/t_st6/asflags0
-rwxr-xr-xtests/t_st6/t_st6.asm82
-rw-r--r--tests/t_st6/t_st6.doc5
-rwxr-xr-xtests/t_st6/t_st6.oribin0 -> 102 bytes
4 files changed, 87 insertions, 0 deletions
diff --git a/tests/t_st6/asflags b/tests/t_st6/asflags
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/t_st6/asflags
diff --git a/tests/t_st6/t_st6.asm b/tests/t_st6/t_st6.asm
new file mode 100755
index 0000000..7cbdc2b
--- /dev/null
+++ b/tests/t_st6/t_st6.asm
@@ -0,0 +1,82 @@
+ cpu st6225
+
+ nop
+ ret
+ reti
+ stop
+ wait
+
+ jrz pc
+ jrnz pc+1
+ jrc pc+2
+ jrnc pc+3
+
+ ld a,v
+ ld a,w
+ ld a,x
+ ld a,y
+ ld a,12h
+ ld a,(x)
+ ld a,(y)
+ ld v,a
+ ld 12h,a
+ ld (x),a
+ ld (y),a
+
+ ldi a,12h
+ ldi v,12h
+ ldi 12h,12h
+
+ jp 123h
+ call 123h
+
+ add a,v
+ add a,12h
+ add a,(x)
+ add a,(y)
+
+ and a,v
+ and a,12h
+ and a,(x)
+ and a,(y)
+
+ cp a,v
+ cp a,12h
+ cp a,(x)
+ cp a,(y)
+
+ sub a,v
+ sub a,12h
+ sub a,(x)
+ sub a,(y)
+
+ addi a,12h
+ andi a,12h
+ cpi a,12h
+ subi a,12h
+
+ clr a
+ clr v
+ clr 12h
+
+ com a
+ rlc a
+ sla a
+
+ inc a
+ inc v
+ inc 12h
+ inc (x)
+ inc (y)
+
+ dec a
+ dec v
+ dec 12h
+ dec (x)
+ dec (y)
+
+ set 3,v
+ res 5,12h
+
+ jrs 3,v,pc
+ jrr 5,12h,pc+1
diff --git a/tests/t_st6/t_st6.doc b/tests/t_st6/t_st6.doc
new file mode 100644
index 0000000..311bc51
--- /dev/null
+++ b/tests/t_st6/t_st6.doc
@@ -0,0 +1,5 @@
++------------------------- Test Application ST6 -----------------------------+
+| |
+| This is a (synthetic) test of the ST6's instruction set |
+| |
++----------------------------------------------------------------------------+
diff --git a/tests/t_st6/t_st6.ori b/tests/t_st6/t_st6.ori
new file mode 100755
index 0000000..c7e305a
--- /dev/null
+++ b/tests/t_st6/t_st6.ori
Binary files differ
n241' href='#n241'>241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
/*
 * ACPI 3.0 based NUMA setup
 * Copyright 2004 Andi Kleen, SuSE Labs.
 *
 * Reads the ACPI SRAT table to figure out what memory belongs to which CPUs.
 *
 * Called from acpi_numa_init while reading the SRAT and SLIT tables.
 * Assumes all memory regions belonging to a single proximity domain
 * are in one chunk. Holes between them will be included in the node.
 * 
 * Adapted for Xen: Ryan Harper <ryanh@us.ibm.com>
 */

#include <xen/init.h>
#include <xen/mm.h>
#include <xen/inttypes.h>
#include <xen/nodemask.h>
#include <xen/acpi.h>
#include <xen/numa.h>
#include <asm/e820.h>
#include <asm/page.h>

static struct acpi_table_slit *__read_mostly acpi_slit;

static nodemask_t nodes_parsed __initdata;
static nodemask_t nodes_found __initdata;
static struct node nodes[MAX_NUMNODES] __initdata;
static u8 __read_mostly pxm2node[256] = { [0 ... 255] = NUMA_NO_NODE };


static int num_node_memblks;
static struct node node_memblk_range[NR_NODE_MEMBLKS];