Searched refs:sp (Results 1 - 25 of 80) sorted by relevance

1234

/gem5/ext/systemc/src/sysc/qt/md/
H A Dmips-irix5.s48 ** $7: sp of thread to suspend.
65 sub $sp,$sp,40 /* Allocate reg save space. */
66 sw $16, 0+16($sp)
67 sw $17, 4+16($sp)
68 sw $18, 8+16($sp)
69 sw $19,12+16($sp)
70 sw $20,16+16($sp)
71 sw $21,20+16($sp)
72 sw $22,24+16($sp)
[all...]
H A Dmips.s37 ** $7: sp of thread to suspend.
54 sub $sp,$sp,40 /* Allocate reg save space. */
55 sw $16, 0+16($sp)
56 sw $17, 4+16($sp)
57 sw $18, 8+16($sp)
58 sw $19,12+16($sp)
59 sw $20,16+16($sp)
60 sw $21,20+16($sp)
61 sw $22,24+16($sp)
[all...]
H A Dsparc.s28 // also used as outgoing sp of old thread (qt_t *)
31 // %o3: sp of new thread
32 // %o5: tmp used to save old thread sp, while using %o0
71 sub %sp, 8, %sp /* Allocate save area for return pc. */
72 st %o7, [%sp+64] /* Save return pc. */
75 mov %sp, %o5 /* Remember old sp w/o chng ins/locals. */
76 sub %o3, 96, %sp /* Allocate kwsa, switch stacks. */
85 ldd [%sp
[all...]
H A Dvax.s29 // a condition handler (at sp+0), the first argument is 40=4*10 bytes
36 movl 56(sp),r1 /* Get stack pointer of new thread. */
37 movl 52(sp),-(r1) /* Push arg2 */
38 movl 48(sp),-(r1) /* Push arg1 */
39 movl sp,-(r1) /* Push arg0 */
41 movl 44(sp),r0 /* Get helper to call. */
42 movl r1,sp /* Move to new thread's stack. */
43 addl3 sp,$12,fp /* .. including the frame pointer. */
49 movl (sp)+,r0 /* Get `only'. */
55 movl (sp)
[all...]
H A Dksr1.h46 | (empty) <-- qt.sp
78 address on the top of the stack (pointed to by qt.sp). This is not
102 | qt_start <-- qt.sp
115 | qt_restore <-- qt.sp
137 #define QUICKTHREADS_ARGS_MD(sp) (QUICKTHREADS_SPUT (sp, 1, ((qt_word_t *)qt_start)[0]))
149 #define QUICKTHREADS_VARGS(sp, nb, vargs, pt, startup, vuserf, cleanup) \
150 (qt_vargs (sp, nbytes, &vargs, pt, startup, vuserf, cleanup))
153 #define QUICKTHREADS_VARGS_MD0(sp, vabytes) \
154 ((qt_t *)(((char *)(sp))
[all...]
H A Dm88k.c55 #define QUICKTHREADS_VADJ(sp) (((char *)sp) - QUICKTHREADS_VSTKBASE)
61 #define QUICKTHREADS_VARGS_MD0(sp, vabytes) \
62 ((qt_t *)(((char *)(sp)) - 8*4 - QUICKTHREADS_STKROUNDUP(vabytes)))
65 #define QUICKTHREADS_VARGS_MD1(sp) (QUICKTHREADS_SPUT (sp, QUICKTHREADS_1, qt_vstart))
76 qt_word_t *sp; local
82 sp = (qt_word_t *)qsp;
90 sp[i] = *reg++;
93 sp[
[all...]
H A Dpowerpc.c38 qt_t *qt_vargs (qt_t *sp, int nbytes, void *vargs,
45 qt_vargs_stdarg (qt_t *sp, int nbytes, va_list vargs, argument
55 sp = QUICKTHREADS_VARGS_MD0 (sp, nbytes);
60 QUICKTHREADS_SPUT (QUICKTHREADS_VARGS_ADJUST(sp), i, arg);
63 QUICKTHREADS_VARGS_MD1 (QUICKTHREADS_VADJ(sp));
64 QUICKTHREADS_SPUT (QUICKTHREADS_VADJ(sp), QUICKTHREADS_VARGT_INDEX, pt);
65 QUICKTHREADS_SPUT (QUICKTHREADS_VADJ(sp), QUICKTHREADS_VSTARTUP_INDEX, startup);
66 QUICKTHREADS_SPUT (QUICKTHREADS_VADJ(sp), QUICKTHREADS_VUSERF_INDEX, vuserf);
67 QUICKTHREADS_SPUT (QUICKTHREADS_VADJ(sp), QUICKTHREADS_VCLEANUP_INDE
[all...]
H A Daxp.c63 #define QUICKTHREADS_VADJ(sp) (((char *)sp) - QUICKTHREADS_VSTKBASE)
65 #define QUICKTHREADS_VARGS_MD0(sp, vabytes) \
66 ((qt_t *)(((char *)(sp)) - 6*2*8 - QUICKTHREADS_STKROUNDUP(vabytes)))
69 #define QUICKTHREADS_VARGS_MD1(sp) (QUICKTHREADS_SPUT (sp, QUICKTHREADS_R26, qt_vstart))
98 qt_word_t *sp; local
102 sp = (qt_word_t *)qsp;
109 sp[i+6] = ((qt_word_t *)(ap._a0 + ap._offset))[i];
111 sp[
[all...]
H A Dhppa.s41 ; arg3: sp of new thread.
48 stw %rp,-20(%sp) ; save rp to old frame-marker
50 stwm %r3,128(%sp) ; save callee-saves general registers
51 stw %r4,-124(%sp)
52 stw %r5,-120(%sp)
53 stw %r6,-116(%sp)
54 stw %r7,-112(%sp)
55 stw %r8,-108(%sp)
56 stw %r9,-104(%sp)
57 stw %r10,-100(%sp)
[all...]
H A Dmips.h50 | <a0> save area req'd by MIPS calling convention <--- sp
68 | <a0> <--- sp
112 #define QUICKTHREADS_ARGS_MD(sp) (QUICKTHREADS_SPUT (sp, QUICKTHREADS_31, qt_start))
114 #define QUICKTHREADS_VARGS_MD0(sp, vabytes) \
115 ((qt_t *)(((char *)(sp)) - 4*4 - QUICKTHREADS_STKROUNDUP(vabytes)))
118 #define QUICKTHREADS_VARGS_MD1(sp) (QUICKTHREADS_SPUT (sp, QUICKTHREADS_31, qt_vstart))
H A Dhppa.h81 | <16 bytes filled in (sp has to be 64-bytes aligned)>
94 +--- <--- sp
151 /* The index, relative to sp, of where to put each value. */
158 #define QUICKTHREADS_ARGS_MD(sp) \
159 (QUICKTHREADS_SPUT (sp, QUICKTHREADS_crp, QUICKTHREADS_PA_RISC_READ_PLABEL(qt_start)))
177 #define QUICKTHREADS_VARGS_MD0(sp, vasize) \
178 ((qt_t *)(((char *)sp) + QUICKTHREADS_STKROUNDUP(vasize + 4*4 + 32)))
182 #define QUICKTHREADS_VARGS_ADJUST(sp) ((qt_t *)(((char *)sp) - 32))
188 #define QUICKTHREADS_VARGS_MD1(sp) \
[all...]
H A Dpowerpc_mach.h538 #define QUICKTHREADS_ARGS_MD(sp) \
539 (QUICKTHREADS_SPUT (sp, QUICKTHREADS_RETURN_INDEX, qt_start), \
540 QUICKTHREADS_SPUT (sp, 0, sp+QUICKTHREADS_BLOCKI_FRAME_SIZE), \
541 QUICKTHREADS_SPUT (sp, QUICKTHREADS_BLOCKI_FRAME_SIZE/sizeof(PPC_W), \
542 sp+QUICKTHREADS_BLOCKI_FRAME_SIZE+QUICKTHREADS_START_FRAME_SIZE))
553 #define QUICKTHREADS_VARGS_MD0(sp, varbytes) \
554 ((qt_sp_bottom_save = sp), \
555 ((qt_t *)(((char *)(sp)) - \
564 #define QUICKTHREADS_VARGS_MD1(sp) \
[all...]
H A Dpowerpc_sys5.h493 #define QUICKTHREADS_ARGS_MD(sp) \
494 (QUICKTHREADS_SPUT (sp, QUICKTHREADS_RETURN_INDEX, qt_start), \
495 QUICKTHREADS_SPUT (sp, 0, sp+QUICKTHREADS_BLOCKI_FRAME_SIZE), \
496 QUICKTHREADS_SPUT (sp, QUICKTHREADS_BLOCKI_FRAME_SIZE/sizeof(PPC_W), \
497 sp+QUICKTHREADS_BLOCKI_FRAME_SIZE+QUICKTHREADS_START_FRAME_SIZE))
508 #define QUICKTHREADS_VARGS_MD0(sp, varbytes) \
509 ((qt_sp_bottom_save = sp), \
510 ((qt_t *)(((char *)(sp)) - \
519 #define QUICKTHREADS_VARGS_MD1(sp) \
[all...]
H A Dmips_b.s84 ld $0, 0($sp)
85 ld $0, 4($sp)
86 ld $0, 8($sp)
87 ld $0, 12($sp)
88 ld $0, 16($sp)
90 ld $0, 20($sp)
91 ld $0, 24($sp)
92 ld $0, 28($sp)
93 ld $0, 32($sp)
94 ld $0, 36($sp)
[all...]
H A Dm88k.h48 | 0 <--- sp
75 | 0 <--- sp
126 #define QUICKTHREADS_ARGS_MD(sp) \
127 (QUICKTHREADS_SPUT (sp, QUICKTHREADS_1, qt_start), \
128 QUICKTHREADS_SPUT (sp, QUICKTHREADS_30, 0))
137 extern struct qt_t *qt_vargs (struct qt_t *sp, int nbytes,
143 #define QUICKTHREADS_VARGS(sp, nbytes, vargs, pt, startup, vuserf, cleanup) \
144 (qt_vargs (sp, nbytes, &(vargs), pt, (qt_function_t *)startup, \
H A Dsparc.h41 | %l0 <--- qt_t.sp
68 | %l0 <--- qt_t.sp
124 #define QUICKTHREADS_VARGS_MD0(sp, vabytes) \
125 ((qt_t *)(((char *)(sp)) - 8*4 - QUICKTHREADS_STKROUNDUP(vabytes)))
127 #define QUICKTHREADS_VARGS_MD1(sp) \
128 (QUICKTHREADS_SPUT (sp, QUICKTHREADS_O7, ((void *)(((int)qt_vstart)-8))))
133 #define QUICKTHREADS_VARGS_ADJUST(sp) (((char *)sp)+4)
H A Daxp.h63 | r26 on startup === qt_start <--- qt.sp
86 | r26 on startup === qt_vstart <--- qt.sp
126 #define QUICKTHREADS_ARGS_MD(sp) (QUICKTHREADS_SPUT (sp, QUICKTHREADS_R26, qt_start))
137 extern struct qt_t *qt_vargs (struct qt_t *sp, int nbytes,
143 #define QUICKTHREADS_VARGS(sp, nbytes, vargs, pt, startup, vuserf, cleanup) \
144 (qt_vargs (sp, nbytes, (struct va_list *)(&(vargs)), pt, \
H A Dvax_b.s79 movl 0(sp),r1
80 movl 4(sp),r1
81 movl 8(sp),r1
82 movl 12(sp),r1
83 movl 16(sp),r1
84 movl 20(sp),r1
85 movl 24(sp),r1
86 movl 28(sp),r1
87 movl 32(sp),r1
88 movl 36(sp),r
[all...]
H A Dksr1.s77 # %i5 -- sp of new to run
93 finop ; ssub8.ntr 0,%sp,%c5,%sp
94 finop ; st8 %fp,504(%sp) # Save caller's fp
95 finop ; st8 %cp,496(%sp) # Save caller's cp
97 finop ; st8 %c14,0(%sp) # Save special ret addr
99 finop ; sadd8.ntr 0,%sp,%c5,%fp # Our frame ptr
100 finop ; st8 %c5,8(%sp) # st qt_restore$TXT
104 finop ; st8 %c15,456(%sp)
105 finop ; st8 %c16,448(%sp)
[all...]
/gem5/ext/systemc/src/sysc/qt/
H A Dqt.c13 qt_vargs (qt_t *sp, int nbytes, void *vargs, argument
19 sp = QT_VARGS_MD0 (sp, nbytes);
22 QT_SPUT (QT_VARGS_ADJUST(sp), i, ((qt_word_t *)vargs)[-i]);
26 QT_SPUT (QT_VARGS_ADJUST(sp), i-1, ((qt_word_t *)vargs)[i-1]);
30 QT_VARGS_MD1 (QT_VADJ(sp));
31 QT_SPUT (QT_VADJ(sp), QT_VARGT_INDEX, pt);
32 QT_SPUT (QT_VADJ(sp), QT_VSTARTUP_INDEX, startup);
33 QT_SPUT (QT_VADJ(sp), QT_VUSERF_INDEX, vuserf);
34 QT_SPUT (QT_VADJ(sp), QT_VCLEANUP_INDE
[all...]
H A Dqt.h27 To restart a thread, you merely need pass the current sp (qt_t*) to
97 #define QUICKTHREADS_ADJ(sp) (((char *)sp) - QUICKTHREADS_STKBASE)
99 #define QUICKTHREADS_ADJ(sp) (((char *)sp) + QUICKTHREADS_STKBASE)
102 #define QUICKTHREADS_ARGS(sp, pu, pt, userf, only) \
103 (QUICKTHREADS_ARGS_MD (QUICKTHREADS_ADJ(sp)), \
104 QUICKTHREADS_SPUT (QUICKTHREADS_ADJ(sp), QUICKTHREADS_ONLY_INDEX, only), \
105 QUICKTHREADS_SPUT (QUICKTHREADS_ADJ(sp), QUICKTHREADS_USER_INDEX, userf), \
106 QUICKTHREADS_SPUT (QUICKTHREADS_ADJ(sp), QUICKTHREADS_ARGT_INDE
[all...]
/gem5/tests/test-progs/asmtest/src/riscv/isa/rv64samt/
H A Dsysclone_d.S91 addi sp, sp, -8
92 sd a0, (sp)
113 // | ... | << sp: stack pointer
121 mv s1, sp // save stack pointer
123 ld t1, (sp) // get child_thread_saved_id
125 addi sp, sp, 8
126 ld t2, (sp) // get child_thread_id
129 addi sp, s
[all...]
/gem5/tests/test-progs/asmtest/src/riscv/env/v/
H A Dentry.S30 la sp, STACK_TOP - SIZEOF_TRAPFRAME_T
33 add sp, sp, t0
34 csrw mscratch, sp
77 csrrw sp, sscratch, sp
80 STORE x1,1*REGBYTES(sp)
81 STORE x3,3*REGBYTES(sp)
82 STORE x4,4*REGBYTES(sp)
83 STORE x5,5*REGBYTES(sp)
[all...]
/gem5/tests/test-progs/asmtest/src/riscv/isa/macros/mt/
H A Dtest_macros_mt_ecall.h137 // | ... | << sp: stack pointer
166 addi sp, sp, -8 variable
167 sd a0, (sp)
173 addi sp, sp, -8 variable
174 sd a0, (sp)
178 addi sp, sp, -8 variable
184 mv a2, sp // pti
194 addi sp, sp, -8 variable
210 addi sp, sp, 8 // skip child_thread_id variable
215 addi sp, sp, 8 variable
220 addi sp, sp, 8 variable
267 addi sp, sp, 8 // skip saved_child_thread_id variable
268 addi sp, sp, 8 // skip child_thread_id variable
273 addi sp, sp, 8 variable
278 addi sp, sp, 8 variable
331 addi sp, sp, 8 variable
337 addi sp, sp, 8 // skip child_tls_ptr variable
338 addi sp, sp, 8 // skip child_stack_ptr variable
346 mv sp, s1 // restore stack pointer variable
[all...]
/gem5/system/alpha/console/
H A Ddbmentry.S64 bis t4,t4,sp
67 cpuz: bis sp,sp,s0 /* save sp */
69 slave: lda v0,(8*1024)(sp) /* end of page */
73 bis t0, v0, sp
75 lda sp, -STARTFRM(sp) # Create a stack frame
76 stq ra, 0(sp) # Place return address on the stack
79 .frame sp, STARTFR
[all...]

Completed in 25 milliseconds

1234